@perfective/eslint-config 0.20.0-alpha.2 → 0.20.0-beta
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-beta",
|
|
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.52.0",
|
|
16
|
+
"@typescript-eslint/eslint-plugin-tslint": "^5.52.0",
|
|
17
|
+
"@typescript-eslint/parser": "^5.52.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
|
-
"eslint-plugin-simple-import-sort": "^
|
|
33
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
34
34
|
"eslint-plugin-sonarjs": "^0.18.0",
|
|
35
|
-
"eslint-plugin-testing-library": "^5.
|
|
35
|
+
"eslint-plugin-testing-library": "^5.10.1",
|
|
36
36
|
"eslint-plugin-unicorn": "^45.0.2",
|
|
37
37
|
"tslint": "^6.1.3"
|
|
38
38
|
},
|
package/rules/jest/index.js
CHANGED
|
@@ -40,7 +40,6 @@ module.exports = {
|
|
|
40
40
|
'jest/no-mocks-import': 'error',
|
|
41
41
|
'jest/no-restricted-jest-methods': 'off',
|
|
42
42
|
'jest/no-restricted-matchers': ['error', {
|
|
43
|
-
resolves: 'Use `expect(await promise)` instead.',
|
|
44
43
|
toBeFalsy: 'Avoid `toBeFalsy`',
|
|
45
44
|
toBeTruthy: 'Avoid `toBeTruthy`',
|
|
46
45
|
toMatchSnapshot: 'Use `toMatchInlineSnapshot()` instead',
|
|
@@ -40,6 +40,12 @@ module.exports = {
|
|
|
40
40
|
}],
|
|
41
41
|
'init-declarations': 'off',
|
|
42
42
|
'@typescript-eslint/init-declarations': ['error', 'always'],
|
|
43
|
+
'key-spacing': 'off',
|
|
44
|
+
'@typescript-eslint/key-spacing': ['warn', {
|
|
45
|
+
beforeColon: false,
|
|
46
|
+
afterColon: true,
|
|
47
|
+
mode: 'strict',
|
|
48
|
+
}],
|
|
43
49
|
'keyword-spacing': 'off',
|
|
44
50
|
'@typescript-eslint/keyword-spacing': ['warn', {
|
|
45
51
|
before: true,
|
|
@@ -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,
|
|
@@ -246,6 +247,7 @@ module.exports = {
|
|
|
246
247
|
'@typescript-eslint/strict-boolean-expressions': ['error', {
|
|
247
248
|
allowString: false,
|
|
248
249
|
allowNumber: false,
|
|
250
|
+
allowNullableEnum: false,
|
|
249
251
|
allowNullableObject: true,
|
|
250
252
|
allowNullableBoolean: false,
|
|
251
253
|
allowNullableString: false,
|