@ethang/eslint-config 19.0.0 → 19.0.2

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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Do **NOT** use this with Prettier! Styling rules are included.
6
6
 
7
- * 614 errored rules.
7
+ * 900 errored rules.
8
8
  * 300 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)
package/eslint.config.js CHANGED
@@ -572,7 +572,7 @@ export default tseslint.config({
572
572
  "sonar/frame-ancestors": "error",
573
573
  "sonar/function-inside-loop": "error",
574
574
  "sonar/function-name": "error",
575
- "sonar/function-return-type": "error",
575
+ "sonar/function-return-type": "off", // No
576
576
  "sonar/future-reserved-words": "error",
577
577
  "sonar/generator-without-yield": "error",
578
578
  "sonar/hashing": "error",
@@ -650,7 +650,7 @@ export default tseslint.config({
650
650
  "sonar/no-implicit-global": "error",
651
651
  "sonar/no-in-misuse": "error",
652
652
  "sonar/no-incomplete-assertions": "error",
653
- "sonar/no-inconsistent-returns": "error",
653
+ "sonar/no-inconsistent-returns": "off", // TODO v9 compatibility?
654
654
  "sonar/no-incorrect-string-concat": "error",
655
655
  "sonar/no-infinite-loop": "error",
656
656
  "sonar/no-intrusive-permissions": "error",
@@ -681,7 +681,7 @@ export default tseslint.config({
681
681
  "sonar/no-redundant-jump": "error",
682
682
  "sonar/no-redundant-optional": "error",
683
683
  "sonar/no-redundant-type-constituents": "error",
684
- "sonar/no-reference-error": "error",
684
+ "sonar/no-reference-error": "off", // Not working correctly, TS can handle this
685
685
  "sonar/no-referrer-policy": "error",
686
686
  "sonar/no-require-or-define": "error",
687
687
  "sonar/no-return-type-any": "error",
@@ -694,7 +694,7 @@ export default tseslint.config({
694
694
  "sonar/no-throw-literal": "error",
695
695
  "sonar/no-try-promise": "error",
696
696
  "sonar/no-undefined-argument": "error",
697
- "sonar/no-undefined-assignment": "error",
697
+ "sonar/no-undefined-assignment": "off", // No
698
698
  "sonar/no-unenclosed-multiline-block": "error",
699
699
  "sonar/no-uniq-key": "error",
700
700
  "sonar/no-unknown-property": "error",
@@ -765,7 +765,7 @@ export default tseslint.config({
765
765
  "sonar/sonar-no-control-regex": "error",
766
766
  "sonar/sonar-no-dupe-keys": "error",
767
767
  "sonar/sonar-no-empty-character-class": "error",
768
- "sonar/sonar-no-fallthrough": "error",
768
+ "sonar/sonar-no-fallthrough": "off", // TODO v9 compatibility?
769
769
  "sonar/sonar-no-invalid-regexp": "error",
770
770
  "sonar/sonar-no-magic-numbers": "error",
771
771
  "sonar/sonar-no-misleading-character-class": "error",
@@ -781,7 +781,7 @@ export default tseslint.config({
781
781
  "sonar/strict-transport-security": "error",
782
782
  "sonar/strings-comparison": "error",
783
783
  "sonar/super-invocation": "error",
784
- "sonar/switch-without-default": "error",
784
+ "sonar/switch-without-default": "off", // @typescript-eslint/switch-exhaustiveness-check works better
785
785
  "sonar/table-header": "error",
786
786
  "sonar/table-header-reference": "error",
787
787
  "sonar/test-check-exception": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.0.0",
3
+ "version": "19.0.2",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -62,7 +62,7 @@
62
62
  "typescript-eslint": "^8.2.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@ethang/project-builder": "^2.3.9",
65
+ "@ethang/project-builder": "^2.3.10",
66
66
  "@tsconfig/node-lts": "^20.1.3",
67
67
  "@tsconfig/strictest": "^2.0.5"
68
68
  }