@ethang/eslint-config 19.0.5 → 19.0.7
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 +2 -2
- package/eslint.config.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Do **NOT** use this with Prettier! Styling rules are included.
|
|
6
6
|
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* 888 errored rules.
|
|
8
|
+
* 288 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
|
|
9
9
|
* 140 rules from vanilla EsLint
|
|
10
10
|
* 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
11
11
|
* 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
package/config.react.js
CHANGED
|
@@ -14,8 +14,8 @@ export default tseslint.config({
|
|
|
14
14
|
"react-hooks": reactHooks,
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
|
-
"react-hooks/exhaustive-deps": "
|
|
18
|
-
"react-hooks/rules-of-hooks": "off", // fix w/ v9 compatibility
|
|
17
|
+
"react-hooks/exhaustive-deps": "off", // TODO fix w/ v9 compatibility
|
|
18
|
+
"react-hooks/rules-of-hooks": "off", // TODO fix w/ v9 compatibility
|
|
19
19
|
"react/dom/no-children-in-void-dom-elements": "error",
|
|
20
20
|
"react/dom/no-dangerously-set-innerhtml": "error",
|
|
21
21
|
"react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
package/eslint.config.js
CHANGED
|
@@ -25,7 +25,7 @@ export const languageOptions = {
|
|
|
25
25
|
export const ignores = ["eslint.config.js", "node_modules", "dist"];
|
|
26
26
|
|
|
27
27
|
export default tseslint.config({
|
|
28
|
-
files: ["**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts
|
|
28
|
+
files: ["**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}"],
|
|
29
29
|
ignores,
|
|
30
30
|
languageOptions,
|
|
31
31
|
plugins: {
|
|
@@ -787,7 +787,7 @@ export default tseslint.config({
|
|
|
787
787
|
"sonar/table-header": "error",
|
|
788
788
|
"sonar/table-header-reference": "error",
|
|
789
789
|
"sonar/test-check-exception": "error",
|
|
790
|
-
"sonar/todo-tag": "
|
|
790
|
+
"sonar/todo-tag": "off", // Can be useful to leave
|
|
791
791
|
"sonar/too-many-break-or-continue-in-loop": "error",
|
|
792
792
|
"sonar/unicode-aware-regex": "error",
|
|
793
793
|
"sonar/unnecessary-character-escapes": "error",
|