@ethang/eslint-config 19.11.5 → 19.12.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/build.mjs +1 -0
- package/config.react.js +1 -0
- package/package.json +5 -5
- package/setup/react.ts +4 -0
package/build.mjs
CHANGED
package/config.react.js
CHANGED
|
@@ -86,6 +86,7 @@ export default tseslint.config({
|
|
|
86
86
|
"react/no-unused-state": "error",
|
|
87
87
|
"react/no-useless-fragment": "error",
|
|
88
88
|
"react/prefer-destructuring-assignment": "error",
|
|
89
|
+
"react/prefer-react-namespace-import": "off",
|
|
89
90
|
"react/prefer-read-only-props": "error",
|
|
90
91
|
"react/prefer-shorthand-boolean": "error",
|
|
91
92
|
"react/prefer-shorthand-fragment": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.12.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"lint": "prettier . -w"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cspell/eslint-plugin": "^8.15.
|
|
17
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
16
|
+
"@cspell/eslint-plugin": "^8.15.1",
|
|
17
|
+
"@eslint-react/eslint-plugin": "^1.15.0",
|
|
18
18
|
"@eslint/compat": "^1.2.0",
|
|
19
19
|
"@eslint/js": "^9.12.0",
|
|
20
20
|
"@eslint/json": "^0.5.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"prettier": "^3.3.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@cspell/eslint-plugin": "^8.15.
|
|
57
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
56
|
+
"@cspell/eslint-plugin": "^8.15.1",
|
|
57
|
+
"@eslint-react/eslint-plugin": "^1.15.0",
|
|
58
58
|
"@eslint/compat": "^1.2.0",
|
|
59
59
|
"@eslint/js": "^9.12.0",
|
|
60
60
|
"@eslint/json": "^0.5.0",
|
package/setup/react.ts
CHANGED
|
@@ -39,6 +39,10 @@ const customReactRules = [
|
|
|
39
39
|
name: "naming-convention/filename",
|
|
40
40
|
rule: ["error", { rule: "kebab-case" }],
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
name: "prefer-react-namespace-import", // TODO failing after updates
|
|
44
|
+
rule: "off",
|
|
45
|
+
},
|
|
42
46
|
];
|
|
43
47
|
const reactGen = genRules(reactRuleNames, customReactRules, "react");
|
|
44
48
|
|