@adaptivestone/framework 5.0.0-beta.13 → 5.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/eslint.config.ts +76 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/eslint.config.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import globals from 'globals';
|
|
2
|
+
import pluginJs from '@eslint/js';
|
|
3
|
+
// eslint-disable-next-line import-x/no-unresolved
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
import { flatConfigs as importPlugin } from 'eslint-plugin-import-x';
|
|
7
|
+
import vitest from '@vitest/eslint-plugin';
|
|
8
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
9
|
+
// eslint-disable-next-line import-x/extensions
|
|
10
|
+
import prettierPlugin from 'eslint-plugin-prettier/recommended';
|
|
11
|
+
|
|
12
|
+
// /** @type {import('eslint').Linter.Config[]} */
|
|
13
|
+
export default tseslint.config([
|
|
14
|
+
{
|
|
15
|
+
ignores: ['dist/'],
|
|
16
|
+
},
|
|
17
|
+
// tseslint.configs.recommended,
|
|
18
|
+
pluginJs.configs.recommended,
|
|
19
|
+
importPlugin.recommended,
|
|
20
|
+
eslintConfigPrettier,
|
|
21
|
+
prettierPlugin,
|
|
22
|
+
{
|
|
23
|
+
languageOptions: {
|
|
24
|
+
sourceType: 'module',
|
|
25
|
+
ecmaVersion: 'latest',
|
|
26
|
+
globals: {
|
|
27
|
+
...globals.es2024,
|
|
28
|
+
...globals.node,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
rules: {
|
|
34
|
+
'no-await-in-loop': 'error',
|
|
35
|
+
'no-param-reassign': 'error',
|
|
36
|
+
'class-methods-use-this': 'error',
|
|
37
|
+
'no-shadow': 'error',
|
|
38
|
+
'prefer-const': 'error',
|
|
39
|
+
'import-x/no-extraneous-dependencies': ['error'],
|
|
40
|
+
'import-x/extensions': ['error', 'always'],
|
|
41
|
+
'import-x/first': ['error'],
|
|
42
|
+
camelcase: ['error', { properties: 'never', ignoreDestructuring: false }],
|
|
43
|
+
'prefer-destructuring': [
|
|
44
|
+
'error',
|
|
45
|
+
{
|
|
46
|
+
VariableDeclarator: {
|
|
47
|
+
array: false,
|
|
48
|
+
object: true,
|
|
49
|
+
},
|
|
50
|
+
AssignmentExpression: {
|
|
51
|
+
array: true,
|
|
52
|
+
object: false,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
enforceForRenamedProperties: false,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
'no-plusplus': 'error',
|
|
60
|
+
'consistent-return': 'error',
|
|
61
|
+
'no-return-await': 'error',
|
|
62
|
+
'arrow-body-style': 'error',
|
|
63
|
+
'dot-notation': 'error',
|
|
64
|
+
curly: 'error',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
files: ['**/*.test.js', '**/*.test.ts'],
|
|
69
|
+
plugins: {
|
|
70
|
+
vitest,
|
|
71
|
+
},
|
|
72
|
+
rules: {
|
|
73
|
+
...vitest.configs.recommended.rules,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptivestone/framework",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.14",
|
|
4
4
|
"description": "Adaptive stone node js framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
"homepage": "https://framework.adaptivestone.com/",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "rm -rf dist && tsc",
|
|
20
|
+
"postbuild": "mkdir ./dist/migrations",
|
|
20
21
|
"check:types": "tsc --noEmit",
|
|
21
22
|
"dev": "node --watch ./src/index.ts",
|
|
22
23
|
"prod": "node --watch ./src/cluster.ts",
|
|
23
24
|
"test": "vitest run",
|
|
24
25
|
"t": "vitest --coverage=false --reporter=default",
|
|
25
26
|
"prettier": "prettier --check '**/*.(js|jsx|ts|tsx|json|css|scss|md)'",
|
|
26
|
-
"lint": "eslint",
|
|
27
|
+
"lint": "eslint --flag unstable_native_nodejs_ts_config",
|
|
27
28
|
"lint:fix": "eslint --fix",
|
|
28
29
|
"codestyle": "npm run prettier && npm run lint",
|
|
29
30
|
"prepare": "husky",
|