@dr.pogodin/eslint-configs 0.1.1 → 0.1.3
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/config/jest.js +8 -0
- package/config/typescript.js +6 -0
- package/package.json +6 -6
package/config/jest.js
CHANGED
|
@@ -17,7 +17,10 @@ export default defineConfig([{
|
|
|
17
17
|
'jest/no-conditional-in-test': 'error',
|
|
18
18
|
'jest/no-confusing-set-timeout': 'error',
|
|
19
19
|
'jest/no-duplicate-hooks': 'error',
|
|
20
|
+
'jest/no-error-equal': 'error',
|
|
20
21
|
'jest/no-test-return-statement': 'error',
|
|
22
|
+
'jest/no-unnecessary-assertion': 'error',
|
|
23
|
+
'jest/no-unneeded-async-expect-function': 'error',
|
|
21
24
|
'jest/no-untyped-mock-factory': 'error',
|
|
22
25
|
'jest/padding-around-after-all-blocks': 'error',
|
|
23
26
|
'jest/padding-around-after-each-blocks': 'error',
|
|
@@ -34,10 +37,15 @@ export default defineConfig([{
|
|
|
34
37
|
'jest/prefer-hooks-on-top': 'error',
|
|
35
38
|
'jest/prefer-jest-mocked': 'error',
|
|
36
39
|
'jest/prefer-mock-promise-shorthand': 'error',
|
|
40
|
+
'jest/prefer-mock-return-shorthand': 'error',
|
|
37
41
|
'jest/prefer-spy-on': 'error',
|
|
38
42
|
'jest/prefer-strict-equal': 'error',
|
|
43
|
+
'jest/prefer-to-have-been-called': 'error',
|
|
44
|
+
'jest/prefer-to-have-been-called-times': 'error',
|
|
39
45
|
'jest/prefer-todo': 'error',
|
|
40
46
|
'jest/require-to-throw-message': 'error',
|
|
47
|
+
'jest/valid-expect-with-promise': 'error',
|
|
48
|
+
'jest/valid-mock-module-path': 'error',
|
|
41
49
|
|
|
42
50
|
'no-console': 'off',
|
|
43
51
|
|
package/config/typescript.js
CHANGED
|
@@ -53,6 +53,7 @@ export default tsEsLint.config(
|
|
|
53
53
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
54
54
|
'@typescript-eslint/no-redeclare': 'error',
|
|
55
55
|
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
|
56
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
56
57
|
|
|
57
58
|
// NOTE: The core rule variant reports incorrect errors on TypeScript
|
|
58
59
|
// code, thus disabled.
|
|
@@ -65,6 +66,11 @@ export default tsEsLint.config(
|
|
|
65
66
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
66
67
|
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
|
67
68
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
69
|
+
|
|
70
|
+
// NOTE: Disables the base rule as it can report incorrect errors.
|
|
71
|
+
'@typescript-eslint/no-unused-private-class-members': 'error',
|
|
72
|
+
'no-unused-private-class-members': 'off',
|
|
73
|
+
|
|
68
74
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
69
75
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
70
76
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dr.pogodin/eslint-configs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "ESLint configurations for TypeScript and/or React projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./config/index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"@babel/preset-env": "^7.28.5",
|
|
35
35
|
"@babel/preset-react": "^7.28.5",
|
|
36
36
|
"@babel/preset-typescript": "^7.28.5",
|
|
37
|
-
"@eslint/js": "^9.
|
|
38
|
-
"@stylistic/eslint-plugin": "^5.
|
|
39
|
-
"eslint": "^9.
|
|
37
|
+
"@eslint/js": "^9.39.2",
|
|
38
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
39
|
+
"eslint": "^9.39.2",
|
|
40
40
|
"eslint-plugin-import": "^2.32.0",
|
|
41
|
-
"eslint-plugin-jest": "^29.0
|
|
41
|
+
"eslint-plugin-jest": "^29.12.0",
|
|
42
42
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
43
|
"eslint-plugin-react": "^7.37.4",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
45
|
"eslint-plugin-react-hooks": "^6.1.1",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
46
|
+
"typescript-eslint": "^8.51.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.4"
|