@zalib/linter 1.1.1 → 2.0.0
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/eslint/node-js.js +1 -4
- package/eslint/node-ts.js +2 -1
- package/eslint/node.js +89 -89
- package/package.json +13 -11
package/eslint/node-js.js
CHANGED
|
@@ -10,8 +10,7 @@ module.exports = {
|
|
|
10
10
|
'plugin:jest/recommended',
|
|
11
11
|
'plugin:jest/style',
|
|
12
12
|
'prettier',
|
|
13
|
-
'plugin:prettier/recommended'
|
|
14
|
-
'airbnb-base',
|
|
13
|
+
'plugin:prettier/recommended'
|
|
15
14
|
],
|
|
16
15
|
files: ['*.js'],
|
|
17
16
|
plugins: [
|
|
@@ -19,8 +18,6 @@ module.exports = {
|
|
|
19
18
|
],
|
|
20
19
|
rules: {
|
|
21
20
|
...nodeBaseConfig.rules,
|
|
22
|
-
'import/extensions': 0,
|
|
23
|
-
'import/no-unresolved': 0,
|
|
24
21
|
strict: 0,
|
|
25
22
|
},
|
|
26
23
|
};
|
package/eslint/node-ts.js
CHANGED
|
@@ -34,7 +34,7 @@ module.exports = {
|
|
|
34
34
|
},
|
|
35
35
|
extends: [
|
|
36
36
|
...nodeBaseConfig.extends,
|
|
37
|
-
'
|
|
37
|
+
'typescript/base',
|
|
38
38
|
'plugin:@typescript-eslint/recommended',
|
|
39
39
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
40
40
|
'plugin:import/errors',
|
|
@@ -218,6 +218,7 @@ module.exports = {
|
|
|
218
218
|
},
|
|
219
219
|
],
|
|
220
220
|
'@typescript-eslint/no-misused-promises': 0,
|
|
221
|
+
'@typescript-eslint/no-unsafe-argument': 0,
|
|
221
222
|
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
222
223
|
'@typescript-eslint/no-unsafe-call': 0,
|
|
223
224
|
'@typescript-eslint/no-unsafe-member-access': 0,
|
package/eslint/node.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
env: {
|
|
3
|
+
browser: false,
|
|
4
|
+
es6: true,
|
|
5
|
+
jest: true,
|
|
6
|
+
'jest/globals': true,
|
|
7
|
+
node: true,
|
|
8
|
+
},
|
|
9
|
+
extends: [
|
|
10
|
+
'eslint:recommended',
|
|
11
|
+
'plugin:jest/recommended',
|
|
12
|
+
'plugin:jest/style',
|
|
13
|
+
'prettier',
|
|
14
|
+
'plugin:prettier/recommended',
|
|
15
|
+
],
|
|
16
|
+
plugins: ['jest'],
|
|
17
|
+
rules: {
|
|
18
|
+
'arrow-parens': [
|
|
19
|
+
1,
|
|
20
|
+
'always',
|
|
21
|
+
{
|
|
22
|
+
requireForBlockBody: true,
|
|
23
|
+
},
|
|
15
24
|
],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'always',
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
'react/jsx-filename-extension': 0,
|
|
86
|
-
'require-await': 0,
|
|
87
|
-
'sort-imports': 2,
|
|
88
|
-
'sort-keys': 2,
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
|
|
25
|
+
'class-methods-use-this': 0,
|
|
26
|
+
'comma-dangle': [
|
|
27
|
+
'error',
|
|
28
|
+
{
|
|
29
|
+
arrays: 'always-multiline',
|
|
30
|
+
exports: 'always-multiline',
|
|
31
|
+
functions: 'always-multiline',
|
|
32
|
+
imports: 'always-multiline',
|
|
33
|
+
objects: 'always-multiline',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
complexity: [2, { max: 10 }],
|
|
37
|
+
'function-paren-newline': 0,
|
|
38
|
+
'implicit-arrow-linebreak': 0,
|
|
39
|
+
'import/extensions': 0,
|
|
40
|
+
'import/no-unresolved': 0,
|
|
41
|
+
'max-lines': [
|
|
42
|
+
2,
|
|
43
|
+
{
|
|
44
|
+
max: 500,
|
|
45
|
+
skipBlankLines: false,
|
|
46
|
+
skipComments: true,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
'max-lines-per-function': [
|
|
50
|
+
2,
|
|
51
|
+
{
|
|
52
|
+
max: 200,
|
|
53
|
+
skipBlankLines: false,
|
|
54
|
+
skipComments: true,
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
'max-params': [2, { max: 3 }],
|
|
58
|
+
'no-await-in-loop': 0,
|
|
59
|
+
'no-continue': 0,
|
|
60
|
+
'no-empty-function': 0,
|
|
61
|
+
'no-plusplus': [
|
|
62
|
+
2,
|
|
63
|
+
{
|
|
64
|
+
allowForLoopAfterthoughts: true,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
'no-promise-executor-return': 0,
|
|
68
|
+
'no-restricted-syntax': 0,
|
|
69
|
+
'padding-line-between-statements': [
|
|
70
|
+
2,
|
|
71
|
+
{
|
|
72
|
+
blankLine: 'always',
|
|
73
|
+
next: '*',
|
|
74
|
+
prev: ['block-like'],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
blankLine: 'always',
|
|
78
|
+
next: 'if',
|
|
79
|
+
prev: '*',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
blankLine: 'always',
|
|
83
|
+
next: '*',
|
|
84
|
+
prev: 'if',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
'require-await': 0,
|
|
88
|
+
'sort-imports': 2,
|
|
89
|
+
'sort-keys': 2,
|
|
90
|
+
},
|
|
91
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zalib/linter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Linter configs",
|
|
5
5
|
"author": "https://github.com/wsp-repo/",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -19,24 +19,26 @@
|
|
|
19
19
|
"npm": ">=10.8.0"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
+
"build": "exit 0",
|
|
22
23
|
"lint": "exit 0",
|
|
24
|
+
"release:patch": "npm version patch",
|
|
25
|
+
"release:minor": "npm version minor",
|
|
26
|
+
"release:major": "npm version major",
|
|
23
27
|
"test": "exit 0"
|
|
24
28
|
},
|
|
25
29
|
"peerDependencies": {
|
|
26
|
-
"@typescript-eslint/eslint-plugin": "
|
|
27
|
-
"@typescript-eslint/parser": "
|
|
28
|
-
"eslint": "
|
|
29
|
-
"eslint-config-
|
|
30
|
-
"eslint-config-
|
|
31
|
-
"eslint-config-
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "8.32.1",
|
|
31
|
+
"@typescript-eslint/parser": "8.32.1",
|
|
32
|
+
"eslint": "9.27.0",
|
|
33
|
+
"eslint-config-base": "1.0.0",
|
|
34
|
+
"eslint-config-prettier": "10.1.5",
|
|
35
|
+
"eslint-config-typescript": "3.0.0",
|
|
32
36
|
"eslint-plugin-import": "2.31.0",
|
|
33
37
|
"eslint-plugin-jest": "28.11.0",
|
|
34
|
-
"eslint-plugin-
|
|
35
|
-
"eslint-plugin-prettier": "5.2.3",
|
|
38
|
+
"eslint-plugin-prettier": "5.4.0",
|
|
36
39
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
37
|
-
"eslint-plugin-typescript-sort": "0.1.11",
|
|
38
40
|
"jest": "29.7.0",
|
|
39
41
|
"prettier": "3.5.3",
|
|
40
|
-
"typescript": "5.8.
|
|
42
|
+
"typescript": "5.8.3"
|
|
41
43
|
}
|
|
42
44
|
}
|