@genesislcap/eslint-config 14.385.0 → 14.386.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/index.js +17 -4
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
parser: '@typescript-eslint/parser',
|
|
3
|
-
plugins: ['@typescript-eslint', 'eslint-plugin-import', 'unused-imports'],
|
|
5
|
+
plugins: ['@typescript-eslint', 'eslint-plugin-import', 'unused-imports', 'react-hooks'],
|
|
4
6
|
parserOptions: {
|
|
5
7
|
project: './tsconfig.json',
|
|
6
8
|
ecmaVersion: 2020,
|
|
@@ -28,6 +30,8 @@ module.exports = {
|
|
|
28
30
|
'no-invalid-this': 'off',
|
|
29
31
|
// Decorators in TypeScript throw this off
|
|
30
32
|
'new-cap': 'off',
|
|
33
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
34
|
+
'react-hooks/exhaustive-deps': 'error',
|
|
31
35
|
// Custom max length from Google's recommendation
|
|
32
36
|
'max-len': [
|
|
33
37
|
'error',
|
|
@@ -47,7 +51,7 @@ module.exports = {
|
|
|
47
51
|
'no-async-promise-executor': ['error'],
|
|
48
52
|
'no-await-in-loop': ['error'],
|
|
49
53
|
'require-atomic-updates': ['error'],
|
|
50
|
-
complexity: ['error', { max:
|
|
54
|
+
complexity: ['error', { max: 45 }],
|
|
51
55
|
'max-depth': ['error', { max: 4 }],
|
|
52
56
|
'prefer-promise-reject-errors': ['error'],
|
|
53
57
|
'no-throw-literal': ['error'],
|
|
@@ -85,7 +89,7 @@ module.exports = {
|
|
|
85
89
|
'import/newline-after-import': ['error'],
|
|
86
90
|
'import/no-absolute-path': ['error'],
|
|
87
91
|
'import/no-mutable-exports': ['error'],
|
|
88
|
-
'import/no-extraneous-dependencies':
|
|
92
|
+
'import/no-extraneous-dependencies': 'off',
|
|
89
93
|
'import/no-unresolved': 'off',
|
|
90
94
|
'import/order': [
|
|
91
95
|
'warn',
|
|
@@ -97,9 +101,18 @@ module.exports = {
|
|
|
97
101
|
},
|
|
98
102
|
overrides: [
|
|
99
103
|
{
|
|
100
|
-
files: [
|
|
104
|
+
files: [
|
|
105
|
+
'*.styles.ts',
|
|
106
|
+
'*.test.ts',
|
|
107
|
+
'*.e2e.ts',
|
|
108
|
+
'**/test/**/*.ts',
|
|
109
|
+
'**/test/**/*.js',
|
|
110
|
+
'webpack.config.js',
|
|
111
|
+
'**/dispatch-renderer.ts',
|
|
112
|
+
],
|
|
101
113
|
rules: {
|
|
102
114
|
'@typescript-eslint/no-magic-numbers': ['off'],
|
|
115
|
+
'react-hooks/rules-of-hooks': 'off',
|
|
103
116
|
},
|
|
104
117
|
},
|
|
105
118
|
{
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/eslint-config",
|
|
3
3
|
"description": "ESLint config",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.386.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@typescript-eslint/parser": "^
|
|
10
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
11
11
|
"eslint-config-google": "^0.14.0",
|
|
12
12
|
"eslint-config-prettier": "^10.1.8",
|
|
13
13
|
"eslint-import-resolver-typescript": "^3.5.5"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
17
|
-
"eslint": ">=
|
|
16
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
17
|
+
"eslint": ">= 9",
|
|
18
18
|
"eslint-plugin-import": "^2.27.5",
|
|
19
19
|
"eslint-plugin-prettier": "^5.0.0",
|
|
20
|
-
"eslint-plugin-unused-imports": "^
|
|
20
|
+
"eslint-plugin-unused-imports": "^4.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "e7b96cdce11cd5c9e08bbf4df29c56120a381dd6"
|
|
31
31
|
}
|