@perfective/eslint-config 0.19.0 → 0.20.0-alpha.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perfective/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-alpha.1",
|
|
4
4
|
"description": "ESLint shareable rules configuration",
|
|
5
5
|
"keywords": ["code quality", "code standard", "code style", "eslint", "eslint-config", "lint", "perfective", "tslint", "tslint-config", "typescript"],
|
|
6
6
|
"author": "Andrey Mikheychik <a.mikheychik@gmail.com>",
|
|
@@ -12,28 +12,28 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@babel/eslint-parser": "^7.19.1",
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
16
|
-
"@typescript-eslint/eslint-plugin-tslint": "^5.
|
|
17
|
-
"@typescript-eslint/parser": "^5.
|
|
18
|
-
"eslint": "^8.
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
16
|
+
"@typescript-eslint/eslint-plugin-tslint": "^5.48.1",
|
|
17
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
18
|
+
"eslint": "^8.31.0",
|
|
19
19
|
"eslint-import-resolver-typescript": "^3.5.2",
|
|
20
|
-
"eslint-plugin-array-func": "^3.1.
|
|
20
|
+
"eslint-plugin-array-func": "^3.1.8",
|
|
21
21
|
"eslint-plugin-cypress": "^2.12.1",
|
|
22
|
-
"eslint-plugin-deprecation": "^1.3.
|
|
22
|
+
"eslint-plugin-deprecation": "^1.3.3",
|
|
23
23
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
24
24
|
"eslint-plugin-import": "^2.26.0",
|
|
25
|
-
"eslint-plugin-jest": "^27.1
|
|
26
|
-
"eslint-plugin-jest-dom": "^4.0.
|
|
25
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
26
|
+
"eslint-plugin-jest-dom": "^4.0.3",
|
|
27
27
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
28
|
-
"eslint-plugin-jsdoc": "^39.6.
|
|
28
|
+
"eslint-plugin-jsdoc": "^39.6.4",
|
|
29
29
|
"eslint-plugin-node": "^11.1.0",
|
|
30
30
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
31
31
|
"eslint-plugin-promise": "^6.1.1",
|
|
32
32
|
"eslint-plugin-rxjs": "^5.0.2",
|
|
33
33
|
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
34
|
-
"eslint-plugin-sonarjs": "^0.
|
|
34
|
+
"eslint-plugin-sonarjs": "^0.17.0",
|
|
35
35
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
36
|
-
"eslint-plugin-unicorn": "^
|
|
36
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
37
37
|
"tslint": "^6.1.3"
|
|
38
38
|
},
|
|
39
39
|
"main": "./index.js",
|
package/rules/jest/index.js
CHANGED
|
@@ -49,6 +49,7 @@ module.exports = {
|
|
|
49
49
|
'jest/no-standalone-expect': 'error',
|
|
50
50
|
'jest/no-test-prefixes': 'warn',
|
|
51
51
|
'jest/no-test-return-statement': 'error',
|
|
52
|
+
'jest/no-untyped-mock-factory': 'warn',
|
|
52
53
|
'jest/prefer-called-with': 'error',
|
|
53
54
|
'jest/prefer-comparison-matcher': 'warn',
|
|
54
55
|
'jest/prefer-each': 'error',
|
|
@@ -57,6 +57,7 @@ module.exports = {
|
|
|
57
57
|
'@typescript-eslint/member-ordering': ['error', {
|
|
58
58
|
default: [
|
|
59
59
|
'signature',
|
|
60
|
+
'call-signature',
|
|
60
61
|
'public-static-field',
|
|
61
62
|
'public-abstract-field',
|
|
62
63
|
'public-decorated-field',
|
|
@@ -66,10 +67,12 @@ module.exports = {
|
|
|
66
67
|
'protected-decorated-field',
|
|
67
68
|
'protected-instance-field',
|
|
68
69
|
'private-static-field',
|
|
69
|
-
'private-
|
|
70
|
+
'#private-static-field',
|
|
70
71
|
'private-decorated-field',
|
|
71
72
|
'private-instance-field',
|
|
73
|
+
'#private-instance-field',
|
|
72
74
|
'field',
|
|
75
|
+
'static-initialization',
|
|
73
76
|
'constructor',
|
|
74
77
|
'public-static-method',
|
|
75
78
|
'public-static-set',
|
|
@@ -96,17 +99,20 @@ module.exports = {
|
|
|
96
99
|
'protected-instance-set',
|
|
97
100
|
'protected-instance-get',
|
|
98
101
|
'private-static-method',
|
|
102
|
+
'#private-static-method',
|
|
99
103
|
'private-static-set',
|
|
100
104
|
'private-static-get',
|
|
101
|
-
'private-
|
|
102
|
-
'private-
|
|
103
|
-
'private-abstract-get',
|
|
105
|
+
'#private-static-set',
|
|
106
|
+
'#private-static-get',
|
|
104
107
|
'private-decorated-method',
|
|
105
108
|
'private-decorated-set',
|
|
106
109
|
'private-decorated-get',
|
|
107
110
|
'private-instance-method',
|
|
111
|
+
'#private-instance-method',
|
|
108
112
|
'private-instance-set',
|
|
109
113
|
'private-instance-get',
|
|
114
|
+
'#private-instance-set',
|
|
115
|
+
'#private-instance-get',
|
|
110
116
|
'method',
|
|
111
117
|
],
|
|
112
118
|
}],
|
package/rules/unicorn/index.js
CHANGED
|
@@ -45,6 +45,7 @@ module.exports = {
|
|
|
45
45
|
onlyCamelCase: false,
|
|
46
46
|
}],
|
|
47
47
|
'unicorn/no-lonely-if': 'warn',
|
|
48
|
+
'unicorn/no-negated-condition': 'warn',
|
|
48
49
|
'unicorn/no-nested-ternary': 'off',
|
|
49
50
|
'unicorn/no-new-array': 'warn',
|
|
50
51
|
'unicorn/no-new-buffer': 'warn',
|
|
@@ -54,6 +55,9 @@ module.exports = {
|
|
|
54
55
|
'unicorn/no-static-only-class': 'error',
|
|
55
56
|
'unicorn/no-thenable': 'error',
|
|
56
57
|
'unicorn/no-this-assignment': 'error',
|
|
58
|
+
'unicorn/no-typeof-undefined': ['warn', {
|
|
59
|
+
checkGlobalVariables: true,
|
|
60
|
+
}],
|
|
57
61
|
'unicorn/no-unnecessary-await': 'warn',
|
|
58
62
|
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
59
63
|
'unicorn/no-unreadable-iife': 'error',
|
|
@@ -125,6 +129,7 @@ module.exports = {
|
|
|
125
129
|
'unicorn/prefer-reflect-apply': 'warn',
|
|
126
130
|
'unicorn/prefer-regexp-test': 'off',
|
|
127
131
|
'unicorn/prefer-set-has': 'warn',
|
|
132
|
+
'unicorn/prefer-set-size': 'warn',
|
|
128
133
|
'unicorn/prefer-spread': 'off',
|
|
129
134
|
'unicorn/prefer-string-replace-all': 'off',
|
|
130
135
|
'unicorn/prefer-string-slice': 'warn',
|