@perfective/eslint-config 0.20.0-alpha.3 → 0.20.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perfective/eslint-config",
|
|
3
|
-
"version": "0.20.0
|
|
3
|
+
"version": "0.20.0",
|
|
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,10 +12,10 @@
|
|
|
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.53.0",
|
|
16
|
+
"@typescript-eslint/eslint-plugin-tslint": "^5.53.0",
|
|
17
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
18
|
+
"eslint": "^8.34.0",
|
|
19
19
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
20
20
|
"eslint-plugin-array-func": "^3.1.8",
|
|
21
21
|
"eslint-plugin-cypress": "^2.12.1",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"eslint-plugin-jest": "^27.2.1",
|
|
26
26
|
"eslint-plugin-jest-dom": "^4.0.3",
|
|
27
27
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
28
|
-
"eslint-plugin-jsdoc": "^
|
|
28
|
+
"eslint-plugin-jsdoc": "^40.0.0",
|
|
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": "^10.0.0",
|
|
34
34
|
"eslint-plugin-sonarjs": "^0.18.0",
|
|
35
|
-
"eslint-plugin-testing-library": "^5.10.
|
|
35
|
+
"eslint-plugin-testing-library": "^5.10.2",
|
|
36
36
|
"eslint-plugin-unicorn": "^45.0.2",
|
|
37
37
|
"tslint": "^6.1.3"
|
|
38
38
|
},
|
package/rules/jsdoc/index.js
CHANGED
|
@@ -81,7 +81,7 @@ module.exports = {
|
|
|
81
81
|
'jsdoc/no-undefined-types': 'error',
|
|
82
82
|
'jsdoc/require-asterisk-prefix': ['error', 'always'],
|
|
83
83
|
'jsdoc/require-description': ['error', {
|
|
84
|
-
exemptedBy: ['inheritdoc', 'package', 'private', 'see'],
|
|
84
|
+
exemptedBy: ['inheritdoc', 'package', 'private', 'see', 'deprecated'],
|
|
85
85
|
}],
|
|
86
86
|
'jsdoc/require-description-complete-sentence': 'error',
|
|
87
87
|
'jsdoc/require-example': 'off',
|
|
@@ -145,6 +145,7 @@ module.exports = {
|
|
|
145
145
|
'@typescript-eslint/no-implicit-any-catch': ['error', {
|
|
146
146
|
allowExplicitAny: false,
|
|
147
147
|
}],
|
|
148
|
+
'@typescript-eslint/no-import-type-side-effects': 'warn',
|
|
148
149
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
149
150
|
'@typescript-eslint/no-invalid-void-type': ['error', {
|
|
150
151
|
allowInGenericTypeArguments: true,
|
|
@@ -157,6 +158,7 @@ module.exports = {
|
|
|
157
158
|
checksConditionals: true,
|
|
158
159
|
checksVoidReturn: true,
|
|
159
160
|
}],
|
|
161
|
+
'@typescript-eslint/no-mixed-enums': 'error',
|
|
160
162
|
'@typescript-eslint/no-namespace': 'error',
|
|
161
163
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
162
164
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
@@ -246,6 +248,7 @@ module.exports = {
|
|
|
246
248
|
'@typescript-eslint/strict-boolean-expressions': ['error', {
|
|
247
249
|
allowString: false,
|
|
248
250
|
allowNumber: false,
|
|
251
|
+
allowNullableEnum: false,
|
|
249
252
|
allowNullableObject: true,
|
|
250
253
|
allowNullableBoolean: false,
|
|
251
254
|
allowNullableString: false,
|