@robinblomberg/eslint-config-robinblomberg 0.23.5 → 0.24.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/index.js +13 -8
- package/package.json +9 -8
package/index.js
CHANGED
|
@@ -66,7 +66,8 @@ module.exports = defineConfig({
|
|
|
66
66
|
warn,
|
|
67
67
|
{
|
|
68
68
|
disallowTypeAnnotations: true,
|
|
69
|
-
|
|
69
|
+
fixStyle: 'inline-type-imports',
|
|
70
|
+
prefer: 'type-imports',
|
|
70
71
|
},
|
|
71
72
|
],
|
|
72
73
|
'@typescript-eslint/default-param-last': warn,
|
|
@@ -433,10 +434,6 @@ module.exports = defineConfig({
|
|
|
433
434
|
},
|
|
434
435
|
},
|
|
435
436
|
{
|
|
436
|
-
env: {
|
|
437
|
-
jest: true,
|
|
438
|
-
mocha: true,
|
|
439
|
-
},
|
|
440
437
|
files: [
|
|
441
438
|
'**/spec/**',
|
|
442
439
|
'**/test/**',
|
|
@@ -444,6 +441,10 @@ module.exports = defineConfig({
|
|
|
444
441
|
'**/*.spec.*',
|
|
445
442
|
'**/*.test.*',
|
|
446
443
|
],
|
|
444
|
+
env: {
|
|
445
|
+
jest: true,
|
|
446
|
+
mocha: true,
|
|
447
|
+
},
|
|
447
448
|
rules: {
|
|
448
449
|
'@typescript-eslint/no-magic-numbers': off,
|
|
449
450
|
'jsdoc/require-jsdoc': off,
|
|
@@ -461,7 +462,7 @@ module.exports = defineConfig({
|
|
|
461
462
|
},
|
|
462
463
|
{
|
|
463
464
|
files: ['**/*.jsx', '**/*.tsx'],
|
|
464
|
-
plugins: ['react', 'jsx-a11y'],
|
|
465
|
+
plugins: ['react', 'react-hooks', 'jsx-a11y'],
|
|
465
466
|
rules: {
|
|
466
467
|
'jsx-a11y/accessible-emoji': warn,
|
|
467
468
|
'jsx-a11y/alt-text': warn,
|
|
@@ -727,6 +728,8 @@ module.exports = defineConfig({
|
|
|
727
728
|
'react/static-property-placement': warn,
|
|
728
729
|
'react/style-prop-object': warn,
|
|
729
730
|
'react/void-dom-elements-no-children': warn,
|
|
731
|
+
'react-hooks/exhaustive-deps': warn,
|
|
732
|
+
'react-hooks/rules-of-hooks': error,
|
|
730
733
|
},
|
|
731
734
|
},
|
|
732
735
|
{
|
|
@@ -966,8 +969,9 @@ module.exports = defineConfig({
|
|
|
966
969
|
'import/dynamic-import-chunkname': off,
|
|
967
970
|
'import/export': warn,
|
|
968
971
|
'import/exports-last': off,
|
|
972
|
+
// This should be opt-in. It's not necessary for Vite, for example.
|
|
969
973
|
'import/extensions': [
|
|
970
|
-
|
|
974
|
+
off,
|
|
971
975
|
{
|
|
972
976
|
js: 'always',
|
|
973
977
|
json: 'always',
|
|
@@ -1334,7 +1338,8 @@ module.exports = defineConfig({
|
|
|
1334
1338
|
},
|
|
1335
1339
|
],
|
|
1336
1340
|
'padding-line-between-statements': warn,
|
|
1337
|
-
|
|
1341
|
+
// You may want to use `fn(function () {})` for some advanced cases:
|
|
1342
|
+
'prefer-arrow-callback': off,
|
|
1338
1343
|
'prefer-const': [warn, { destructuring: 'all' }],
|
|
1339
1344
|
'prefer-destructuring': [off, { array: false, object: true }],
|
|
1340
1345
|
'prefer-named-capture-group': off,
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinblomberg/eslint-config-robinblomberg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"author": "Robin Blomberg",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/RobinBlomberg/eslint-config.git"
|
|
8
|
+
"url": "git+https://github.com/RobinBlomberg/eslint-config-robinblomberg.git"
|
|
9
9
|
},
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/RobinBlomberg/eslint-config/issues"
|
|
11
|
+
"url": "https://github.com/RobinBlomberg/eslint-config-robinblomberg/issues"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/RobinBlomberg/eslint-config#readme",
|
|
13
|
+
"homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/core": "^7.23.7",
|
|
16
16
|
"@babel/eslint-parser": "^7.23.3",
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
18
|
-
"@typescript-eslint/parser": "^6.
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
18
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
19
19
|
"eslint-define-config": "^2.1.0",
|
|
20
20
|
"eslint-plugin-import": "^2.29.1",
|
|
21
|
-
"eslint-plugin-jsdoc": "^
|
|
21
|
+
"eslint-plugin-jsdoc": "^48.0.2",
|
|
22
22
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
23
23
|
"eslint-plugin-react": "^7.33.2",
|
|
24
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
24
25
|
"eslint-plugin-sonarjs": "^0.23.0",
|
|
25
26
|
"eslint-plugin-sort-exports": "^0.8.0",
|
|
26
27
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"eslint-plugin-unicorn": "^50.0.1"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@robinblomberg/eslint-config-robinblomberg": "0.23.
|
|
32
|
+
"@robinblomberg/eslint-config-robinblomberg": "0.23.5",
|
|
32
33
|
"@types/node": "*"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|