eslint-config-entva 2.35.0 → 2.41.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 +21 -0
- package/package.json +5 -4
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import react from 'eslint-plugin-react';
|
|
|
3
3
|
import jsxA11Y from 'eslint-plugin-jsx-a11y';
|
|
4
4
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
5
5
|
import importPlugin from 'eslint-plugin-import';
|
|
6
|
+
import storybook from 'eslint-plugin-storybook';
|
|
6
7
|
import globals from 'globals';
|
|
7
8
|
|
|
8
9
|
export const mainRule = {
|
|
@@ -514,9 +515,29 @@ export const mainRule = {
|
|
|
514
515
|
},
|
|
515
516
|
};
|
|
516
517
|
|
|
518
|
+
const baseDevDeps = baseMainRule.rules['import/no-extraneous-dependencies'][1].devDependencies;
|
|
519
|
+
|
|
517
520
|
export default [
|
|
518
521
|
ignoreRule,
|
|
519
522
|
baseMainRule,
|
|
523
|
+
...storybook.configs['flat/recommended'],
|
|
520
524
|
mainRule,
|
|
521
525
|
testRule,
|
|
526
|
+
{
|
|
527
|
+
rules: {
|
|
528
|
+
'import/no-extraneous-dependencies': [
|
|
529
|
+
'error',
|
|
530
|
+
{
|
|
531
|
+
devDependencies: [
|
|
532
|
+
...baseDevDeps,
|
|
533
|
+
'**/eslint.*',
|
|
534
|
+
'**/vitest.*',
|
|
535
|
+
'**/*.stories.*',
|
|
536
|
+
'**/.storybook/**',
|
|
537
|
+
],
|
|
538
|
+
optionalDependencies: false,
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
},
|
|
542
|
+
},
|
|
522
543
|
];
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/entva/styleguide.git"
|
|
10
10
|
},
|
|
11
11
|
"bugs": "https://github.com/entva/styleguide/issues",
|
|
12
|
-
"version": "2.
|
|
12
|
+
"version": "2.41.0",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"linter",
|
|
15
15
|
"config",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "npm test"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"eslint": "^9.39.
|
|
29
|
-
"react": "^19.
|
|
28
|
+
"eslint": "^9.39.4",
|
|
29
|
+
"react": "^19.2.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"eslint-config-entva-base": "^2.x.x",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
35
35
|
"eslint-plugin-react": "^7.37.5",
|
|
36
36
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
37
|
-
"
|
|
37
|
+
"eslint-plugin-storybook": "^10.2.16",
|
|
38
|
+
"globals": "^17.4.0"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"eslint": "^9.x.x"
|