@ethang/eslint-config 19.0.3 → 19.0.5

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 CHANGED
@@ -15,7 +15,7 @@ export default tseslint.config({
15
15
  },
16
16
  rules: {
17
17
  "react-hooks/exhaustive-deps": "error",
18
- "react-hooks/rules-of-hooks": "error",
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
@@ -571,7 +571,9 @@ export default tseslint.config({
571
571
  "sonar/for-loop-increment-sign": "error",
572
572
  "sonar/frame-ancestors": "error",
573
573
  "sonar/function-inside-loop": "error",
574
- "sonar/function-name": "error",
574
+ "sonar/function-name": ["error", {
575
+ format: '^(?:[a-z][a-zA-Z0-9]*|[A-Z][A-Z0-9]*)$'
576
+ }],
575
577
  "sonar/function-return-type": "off", // No
576
578
  "sonar/future-reserved-words": "error",
577
579
  "sonar/generator-without-yield": "error",
@@ -597,7 +599,7 @@ export default tseslint.config({
597
599
  "sonar/misplaced-loop-counter": "error",
598
600
  "sonar/mouse-events-a11y": "error",
599
601
  "sonar/nested-control-flow": "error",
600
- "sonar/new-cap": "error",
602
+ "sonar/new-cap": "off", // No
601
603
  "sonar/new-operator-misuse": "error",
602
604
  "sonar/no-accessor-field-mismatch": "error",
603
605
  "sonar/no-all-duplicated-branches": "error",
@@ -751,7 +753,7 @@ export default tseslint.config({
751
753
  "sonar/reduce-initial-value": "error",
752
754
  "sonar/redundant-type-aliases": "error",
753
755
  "sonar/regex-complexity": "error",
754
- "sonar/rules-of-hooks": "error",
756
+ "sonar/rules-of-hooks": "off", // TODO v9 compatibility?
755
757
  "sonar/session-regeneration": "error",
756
758
  "sonar/shorthand-property-grouping": "off", // Conflicts with perfectionist sorting
757
759
  "sonar/single-char-in-character-classes": "error",
@@ -767,7 +769,7 @@ export default tseslint.config({
767
769
  "sonar/sonar-no-empty-character-class": "error",
768
770
  "sonar/sonar-no-fallthrough": "off", // TODO v9 compatibility?
769
771
  "sonar/sonar-no-invalid-regexp": "error",
770
- "sonar/sonar-no-magic-numbers": "error",
772
+ "sonar/sonar-no-magic-numbers": "off", // No
771
773
  "sonar/sonar-no-misleading-character-class": "error",
772
774
  "sonar/sonar-no-regex-spaces": "error",
773
775
  "sonar/sonar-no-unused-class-component-methods": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.0.3",
3
+ "version": "19.0.5",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },