@ethang/eslint-config 25.4.3 → 25.5.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/README.md +2 -2
- package/config.react.js +1 -1
- package/config.react.js.map +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
* 58 rules for **HTML**
|
|
34
34
|
* `import htmlConfig from "@ethang/eslint-config/config.html.js";`
|
|
35
35
|
* 58 rules from [@html-eslint/eslint-plugin](https://github.com/html-eslint/html-eslint)
|
|
36
|
-
*
|
|
36
|
+
* 95 rules for **React**
|
|
37
37
|
* `import reactConfig from "@ethang/eslint-config/config.react.js";`
|
|
38
|
-
*
|
|
38
|
+
* 66 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
|
|
39
39
|
* 29 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
|
40
40
|
* 18 rules for **Solid**
|
|
41
41
|
* `import solidConfig from "@ethang/eslint-config/config.solid.js";`
|
package/config.react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as e}from"./chunk-6GP5IJXA.js";import{defineConfig as o,globalIgnores as t}from"eslint/config";import a from"@eslint-react/eslint-plugin";import n from"eslint-plugin-react-hooks";var l=o(t(r),{files:["**/*.{jsx,tsx}"],languageOptions:e,settings:{react:{version:"19.2.4"}},plugins:{react:a,"react-hooks":n},rules:{"react/
|
|
1
|
+
import{a as r,b as e}from"./chunk-6GP5IJXA.js";import{defineConfig as o,globalIgnores as t}from"eslint/config";import a from"@eslint-react/eslint-plugin";import n from"eslint-plugin-react-hooks";var l=o(t(r),{files:["**/*.{jsx,tsx}"],languageOptions:e,settings:{react:{version:"19.2.4"}},plugins:{react:a,"react-hooks":n},rules:{"react/component-hook-factories":"error","react/error-boundaries":"error","react/exhaustive-deps":"error","react/immutability":"error","react/jsx-dollar":"error","react/jsx-key-before-spread":"error","react/jsx-no-comment-textnodes":"error","react/jsx-shorthand-boolean":"error","react/jsx-shorthand-fragment":"error","react/no-access-state-in-setstate":"error","react/no-array-index-key":"error","react/no-children-count":"error","react/no-children-for-each":"error","react/no-children-map":"error","react/no-children-only":"error","react/no-children-prop":"error","react/no-children-to-array":"error","react/no-class-component":"error","react/no-clone-element":"error","react/no-component-will-mount":"error","react/no-component-will-receive-props":"error","react/no-component-will-update":"error","react/no-context-provider":"error","react/no-create-ref":"error","react/no-direct-mutation-state":"error","react/no-duplicate-key":"error","react/no-forward-ref":"error","react/no-implicit-children":"error","react/no-implicit-key":"error","react/no-implicit-ref":"error","react/no-leaked-conditional-rendering":"error","react/no-missing-component-display-name":"error","react/no-missing-context-display-name":"error","react/no-missing-key":"error","react/no-misused-capture-owner-stack":"error","react/no-nested-component-definitions":"error","react/no-nested-lazy-component-declarations":"error","react/no-redundant-should-component-update":"error","react/no-set-state-in-component-did-mount":"error","react/no-set-state-in-component-did-update":"error","react/no-set-state-in-component-will-update":"error","react/no-unnecessary-use-callback":"error","react/no-unnecessary-use-memo":"error","react/no-unnecessary-use-prefix":"error","react/no-unsafe-component-will-mount":"error","react/no-unsafe-component-will-receive-props":"error","react/no-unsafe-component-will-update":"error","react/no-unstable-context-value":"error","react/no-unstable-default-props":"error","react/no-unused-class-component-members":"error","react/no-unused-props":"error","react/no-unused-state":"error","react/no-use-context":"error","react/no-useless-fragment":"error","react/prefer-destructuring-assignment":"error","react/prefer-namespace-import":"error","react/purity":"error","react/refs":"error","react/rules-of-hooks":"error","react/set-state-in-effect":"error","react/set-state-in-render":"error","react/unstable-rules-of-props":"error","react/unstable-rules-of-state":"error","react/unsupported-syntax":"error","react/use-memo":"error","react/use-state":"error","react-hooks/automatic-effect-dependencies":"error","react-hooks/capitalized-calls":"error","react-hooks/component-hook-factories":"error","react-hooks/config":"error","react-hooks/error-boundaries":"error","react-hooks/exhaustive-deps":"error","react-hooks/fbt":"error","react-hooks/fire":"error","react-hooks/gating":"error","react-hooks/globals":"error","react-hooks/hooks":"error","react-hooks/immutability":"error","react-hooks/incompatible-library":"error","react-hooks/invariant":"error","react-hooks/memoized-effect-dependencies":"error","react-hooks/no-deriving-state-in-effects":"error","react-hooks/preserve-manual-memoization":"error","react-hooks/purity":"error","react-hooks/refs":"error","react-hooks/rule-suppression":"error","react-hooks/rules-of-hooks":"error","react-hooks/set-state-in-effect":"error","react-hooks/set-state-in-render":"error","react-hooks/static-components":"error","react-hooks/syntax":"error","react-hooks/todo":"error","react-hooks/unsupported-syntax":"error","react-hooks/use-memo":"error","react-hooks/void-use-memo":"error"}});export{l as default};
|
|
2
2
|
//# sourceMappingURL=config.react.js.map
|
package/config.react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/config.react.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig, globalIgnores } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport react from \"@eslint-react/eslint-plugin\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\n\nexport default defineConfig(\n globalIgnores(ignores),\n{\n files: [\"**/*.{jsx,tsx}\"],\nlanguageOptions,\nsettings: {\n \"react\":{\"version\":\"19.2.4\"}\n},\n plugins: {\n \"react\": react,\"react-hooks\": reactHooks,\n },\n rules: {\n \"react/
|
|
1
|
+
{"version":3,"sources":["../src/config.react.js"],"sourcesContent":["// @ts-nocheck\nimport { defineConfig, globalIgnores } from \"eslint/config\";\nimport { ignores, languageOptions } from \"./constants.js\";\nimport react from \"@eslint-react/eslint-plugin\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\n\nexport default defineConfig(\n globalIgnores(ignores),\n{\n files: [\"**/*.{jsx,tsx}\"],\nlanguageOptions,\nsettings: {\n \"react\":{\"version\":\"19.2.4\"}\n},\n plugins: {\n \"react\": react,\"react-hooks\": reactHooks,\n },\n rules: {\n \"react/component-hook-factories\":\"error\",\"react/error-boundaries\":\"error\",\"react/exhaustive-deps\":\"error\",\"react/immutability\":\"error\",\"react/jsx-dollar\":\"error\",\"react/jsx-key-before-spread\":\"error\",\"react/jsx-no-comment-textnodes\":\"error\",\"react/jsx-shorthand-boolean\":\"error\",\"react/jsx-shorthand-fragment\":\"error\",\"react/no-access-state-in-setstate\":\"error\",\"react/no-array-index-key\":\"error\",\"react/no-children-count\":\"error\",\"react/no-children-for-each\":\"error\",\"react/no-children-map\":\"error\",\"react/no-children-only\":\"error\",\"react/no-children-prop\":\"error\",\"react/no-children-to-array\":\"error\",\"react/no-class-component\":\"error\",\"react/no-clone-element\":\"error\",\"react/no-component-will-mount\":\"error\",\"react/no-component-will-receive-props\":\"error\",\"react/no-component-will-update\":\"error\",\"react/no-context-provider\":\"error\",\"react/no-create-ref\":\"error\",\"react/no-direct-mutation-state\":\"error\",\"react/no-duplicate-key\":\"error\",\"react/no-forward-ref\":\"error\",\"react/no-implicit-children\":\"error\",\"react/no-implicit-key\":\"error\",\"react/no-implicit-ref\":\"error\",\"react/no-leaked-conditional-rendering\":\"error\",\"react/no-missing-component-display-name\":\"error\",\"react/no-missing-context-display-name\":\"error\",\"react/no-missing-key\":\"error\",\"react/no-misused-capture-owner-stack\":\"error\",\"react/no-nested-component-definitions\":\"error\",\"react/no-nested-lazy-component-declarations\":\"error\",\"react/no-redundant-should-component-update\":\"error\",\"react/no-set-state-in-component-did-mount\":\"error\",\"react/no-set-state-in-component-did-update\":\"error\",\"react/no-set-state-in-component-will-update\":\"error\",\"react/no-unnecessary-use-callback\":\"error\",\"react/no-unnecessary-use-memo\":\"error\",\"react/no-unnecessary-use-prefix\":\"error\",\"react/no-unsafe-component-will-mount\":\"error\",\"react/no-unsafe-component-will-receive-props\":\"error\",\"react/no-unsafe-component-will-update\":\"error\",\"react/no-unstable-context-value\":\"error\",\"react/no-unstable-default-props\":\"error\",\"react/no-unused-class-component-members\":\"error\",\"react/no-unused-props\":\"error\",\"react/no-unused-state\":\"error\",\"react/no-use-context\":\"error\",\"react/no-useless-fragment\":\"error\",\"react/prefer-destructuring-assignment\":\"error\",\"react/prefer-namespace-import\":\"error\",\"react/purity\":\"error\",\"react/refs\":\"error\",\"react/rules-of-hooks\":\"error\",\"react/set-state-in-effect\":\"error\",\"react/set-state-in-render\":\"error\",\"react/unstable-rules-of-props\":\"error\",\"react/unstable-rules-of-state\":\"error\",\"react/unsupported-syntax\":\"error\",\"react/use-memo\":\"error\",\"react/use-state\":\"error\",\"react-hooks/automatic-effect-dependencies\":\"error\",\"react-hooks/capitalized-calls\":\"error\",\"react-hooks/component-hook-factories\":\"error\",\"react-hooks/config\":\"error\",\"react-hooks/error-boundaries\":\"error\",\"react-hooks/exhaustive-deps\":\"error\",\"react-hooks/fbt\":\"error\",\"react-hooks/fire\":\"error\",\"react-hooks/gating\":\"error\",\"react-hooks/globals\":\"error\",\"react-hooks/hooks\":\"error\",\"react-hooks/immutability\":\"error\",\"react-hooks/incompatible-library\":\"error\",\"react-hooks/invariant\":\"error\",\"react-hooks/memoized-effect-dependencies\":\"error\",\"react-hooks/no-deriving-state-in-effects\":\"error\",\"react-hooks/preserve-manual-memoization\":\"error\",\"react-hooks/purity\":\"error\",\"react-hooks/refs\":\"error\",\"react-hooks/rule-suppression\":\"error\",\"react-hooks/rules-of-hooks\":\"error\",\"react-hooks/set-state-in-effect\":\"error\",\"react-hooks/set-state-in-render\":\"error\",\"react-hooks/static-components\":\"error\",\"react-hooks/syntax\":\"error\",\"react-hooks/todo\":\"error\",\"react-hooks/unsupported-syntax\":\"error\",\"react-hooks/use-memo\":\"error\",\"react-hooks/void-use-memo\":\"error\"\n },\n \n }\n );\n"],"mappings":"+CACA,OAAS,gBAAAA,EAAc,iBAAAC,MAAqB,gBAE5C,OAAOC,MAAW,8BAClB,OAAOC,MAAgB,4BAEvB,IAAOC,EAAQC,EACTC,EAAcC,CAAO,EAC3B,CACI,MAAO,CAAC,gBAAgB,EAC5B,gBAAAC,EACA,SAAU,CACR,MAAQ,CAAC,QAAU,QAAQ,CAC7B,EACI,QAAS,CAC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oB,QAAQ,2BAA2B,QAAQ,mCAAmC,QAAQ,wBAAwB,QAAQ,2CAA2C,QAAQ,2CAA2C,QAAQ,0CAA0C,QAAQ,qBAAqB,QAAQ,mBAAmB,QAAQ,+BAA+B,QAAQ,6BAA6B,QAAQ,kCAAkC,QAAQ,kCAAkC,QAAQ,gCAAgC,QAAQ,qBAAqB,QAAQ,mBAAmB,QAAQ,iCAAiC,QAAQ,uBAAuB,QAAQ,4BAA4B,OAC7hH,CAEF,CACE","names":["defineConfig","globalIgnores","react","reactHooks","config_react_default","defineConfig","globalIgnores","ignores","languageOptions"]}
|
package/package.json
CHANGED
|
@@ -5,37 +5,37 @@
|
|
|
5
5
|
"current node"
|
|
6
6
|
],
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@angular-eslint/eslint-plugin": "^21.3.
|
|
9
|
-
"@angular-eslint/eslint-plugin-template": "^21.3.
|
|
10
|
-
"@angular-eslint/template-parser": "^21.3.
|
|
8
|
+
"@angular-eslint/eslint-plugin": "^21.3.1",
|
|
9
|
+
"@angular-eslint/eslint-plugin-template": "^21.3.1",
|
|
10
|
+
"@angular-eslint/template-parser": "^21.3.1",
|
|
11
11
|
"@cspell/eslint-plugin": "^9.7.0",
|
|
12
|
-
"@eslint-react/eslint-plugin": "^
|
|
12
|
+
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
13
13
|
"@eslint/compat": "^2.0.3",
|
|
14
14
|
"@eslint/css": "1.0.0",
|
|
15
15
|
"@eslint/js": "^10.0.1",
|
|
16
16
|
"@eslint/json": "^1.1.0",
|
|
17
17
|
"@eslint/markdown": "^7.5.1",
|
|
18
18
|
"@html-eslint/eslint-plugin": "^0.58.1",
|
|
19
|
-
"@tanstack/eslint-plugin-query": "^5.91.
|
|
20
|
-
"@tanstack/eslint-plugin-router": "^1.161.
|
|
21
|
-
"@typescript-eslint/parser": "^8.57.
|
|
22
|
-
"angular-eslint": "21.3.
|
|
19
|
+
"@tanstack/eslint-plugin-query": "^5.91.5",
|
|
20
|
+
"@tanstack/eslint-plugin-router": "^1.161.6",
|
|
21
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
22
|
+
"angular-eslint": "21.3.1",
|
|
23
23
|
"eslint": "^10.0.3",
|
|
24
24
|
"eslint-config-prettier": "^10.1.8",
|
|
25
25
|
"eslint-plugin-astro": "^1.6.0",
|
|
26
26
|
"eslint-plugin-compat": "^7.0.0",
|
|
27
27
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
28
28
|
"eslint-plugin-lodash": "^8.0.0",
|
|
29
|
-
"eslint-plugin-perfectionist": "^5.
|
|
29
|
+
"eslint-plugin-perfectionist": "^5.7.0",
|
|
30
30
|
"eslint-plugin-prettier": "^5.5.5",
|
|
31
31
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
32
32
|
"eslint-plugin-solid": "^0.14.5",
|
|
33
33
|
"eslint-plugin-sonarjs": "4.0.2",
|
|
34
|
-
"eslint-plugin-storybook": "^10.
|
|
34
|
+
"eslint-plugin-storybook": "^10.3.1",
|
|
35
35
|
"eslint-plugin-tailwindcss": "^4.0.0-beta.0",
|
|
36
36
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
37
37
|
"prettier": "^3.8.1",
|
|
38
|
-
"typescript-eslint": "^8.57.
|
|
38
|
+
"typescript-eslint": "^8.57.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@ethang/markdown-generator": "^1.2.0",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@types/lodash": "^4.17.24",
|
|
46
46
|
"@types/node": "^25.5.0",
|
|
47
47
|
"@vitest/coverage-v8": "^4.1.0",
|
|
48
|
-
"baseline-browser-mapping": "^2.10.
|
|
48
|
+
"baseline-browser-mapping": "^2.10.9",
|
|
49
49
|
"browserslist-config-baseline": "^0.5.0",
|
|
50
50
|
"lodash": "^4.17.23",
|
|
51
|
-
"tailwindcss": "^4.2.
|
|
51
|
+
"tailwindcss": "^4.2.2",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vitest": "^4.1.0",
|
|
54
54
|
"zod": "^4.3.6"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"test:watch": "vitest --coverage"
|
|
70
70
|
},
|
|
71
71
|
"type": "module",
|
|
72
|
-
"version": "25.
|
|
72
|
+
"version": "25.5.1"
|
|
73
73
|
}
|