@ethang/eslint-config 19.0.4 → 19.0.6
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/config.react.js +2 -2
- package/eslint.config.js +4 -4
- package/package.json +1 -1
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": "
|
|
17
|
+
"react-hooks/exhaustive-deps": "off", // fix w/ v9 compatibility
|
|
18
|
+
"react-hooks/rules-of-hooks": "off", // 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: {
|
|
@@ -599,7 +599,7 @@ export default tseslint.config({
|
|
|
599
599
|
"sonar/misplaced-loop-counter": "error",
|
|
600
600
|
"sonar/mouse-events-a11y": "error",
|
|
601
601
|
"sonar/nested-control-flow": "error",
|
|
602
|
-
"sonar/new-cap": "
|
|
602
|
+
"sonar/new-cap": "off", // No
|
|
603
603
|
"sonar/new-operator-misuse": "error",
|
|
604
604
|
"sonar/no-accessor-field-mismatch": "error",
|
|
605
605
|
"sonar/no-all-duplicated-branches": "error",
|
|
@@ -753,7 +753,7 @@ export default tseslint.config({
|
|
|
753
753
|
"sonar/reduce-initial-value": "error",
|
|
754
754
|
"sonar/redundant-type-aliases": "error",
|
|
755
755
|
"sonar/regex-complexity": "error",
|
|
756
|
-
"sonar/rules-of-hooks": "
|
|
756
|
+
"sonar/rules-of-hooks": "off", // TODO v9 compatibility?
|
|
757
757
|
"sonar/session-regeneration": "error",
|
|
758
758
|
"sonar/shorthand-property-grouping": "off", // Conflicts with perfectionist sorting
|
|
759
759
|
"sonar/single-char-in-character-classes": "error",
|
|
@@ -769,7 +769,7 @@ export default tseslint.config({
|
|
|
769
769
|
"sonar/sonar-no-empty-character-class": "error",
|
|
770
770
|
"sonar/sonar-no-fallthrough": "off", // TODO v9 compatibility?
|
|
771
771
|
"sonar/sonar-no-invalid-regexp": "error",
|
|
772
|
-
"sonar/sonar-no-magic-numbers": "
|
|
772
|
+
"sonar/sonar-no-magic-numbers": "off", // No
|
|
773
773
|
"sonar/sonar-no-misleading-character-class": "error",
|
|
774
774
|
"sonar/sonar-no-regex-spaces": "error",
|
|
775
775
|
"sonar/sonar-no-unused-class-component-methods": "error",
|