@ethang/eslint-config 19.4.5 → 19.4.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/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 888 errored rules.
9
- - 291 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
8
+ - 886 errored rules.
9
+ - 289 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
10
  - 145 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
11
  - 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
12
12
  - 104 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
package/eslint.config.js CHANGED
@@ -804,7 +804,7 @@ export default tseslint.config(
804
804
  "sonar/no-redundant-optional": "error",
805
805
  "sonar/no-redundant-parentheses": "off",
806
806
  "sonar/no-redundant-type-constituents": "error",
807
- "sonar/no-reference-error": "error",
807
+ "sonar/no-reference-error": "off",
808
808
  "sonar/no-referrer-policy": "error",
809
809
  "sonar/no-require-or-define": "error",
810
810
  "sonar/no-return-type-any": "error",
@@ -893,7 +893,7 @@ export default tseslint.config(
893
893
  "sonar/sonar-no-control-regex": "error",
894
894
  "sonar/sonar-no-dupe-keys": "error",
895
895
  "sonar/sonar-no-empty-character-class": "error",
896
- "sonar/sonar-no-fallthrough": "error",
896
+ "sonar/sonar-no-fallthrough": "off",
897
897
  "sonar/sonar-no-invalid-regexp": "error",
898
898
  "sonar/sonar-no-magic-numbers": "off",
899
899
  "sonar/sonar-no-misleading-character-class": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.4.5",
3
+ "version": "19.4.6",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -18,7 +18,7 @@
18
18
  "@eslint/js": "^9.10.0",
19
19
  "@eslint/json": "^0.4.0",
20
20
  "@eslint/markdown": "^6.1.0",
21
- "@ethang/eslint-plugin": "^0.0.8",
21
+ "@ethang/eslint-plugin": "^0.0.9",
22
22
  "@stylistic/eslint-plugin": "^2.8.0",
23
23
  "@tanstack/eslint-plugin-query": "^5.53.0",
24
24
  "@typescript-eslint/parser": "^8.5.0",
@@ -52,7 +52,7 @@
52
52
  "@eslint/js": "^9.10.0",
53
53
  "@eslint/json": "^0.4.0",
54
54
  "@eslint/markdown": "^6.1.0",
55
- "@ethang/eslint-plugin": "^0.0.8",
55
+ "@ethang/eslint-plugin": "^0.0.9",
56
56
  "@stylistic/eslint-plugin": "^2.8.0",
57
57
  "@tanstack/eslint-plugin-query": "^5.53.0",
58
58
  "@typescript-eslint/parser": "^8.5.0",
package/setup/sonar.js CHANGED
@@ -31,6 +31,7 @@ const customRules = [
31
31
  { name: "no-implicit-dependencies", rule: "off" },
32
32
  { name: "no-inconsistent-returns", rule: "off" },
33
33
  { name: "no-redundant-parentheses", rule: "off" },
34
+ { name: "no-reference-error", rule: "off" }, // TODO bug: reports globals
34
35
  { name: "no-tab", rule: "off" },
35
36
  { name: "no-undefined-assignment", rule: "off" },
36
37
  { name: "process-argv", rule: "off" },
@@ -38,6 +39,7 @@ const customRules = [
38
39
  { name: "semi", rule: "off" },
39
40
  { name: "shorthand-property-grouping", rule: "off" }, // Conflicts with perfectionist sorting
40
41
  { name: "sockets", rule: "off" },
42
+ { name: "sonar-no-fallthrough", rule: "off" }, // TODO readd with v9 compat?
41
43
  { name: "sonar-no-magic-numbers", rule: "off" },
42
44
  { name: "standard-input", rule: "off" },
43
45
  { name: "switch-without-default", rule: "off" }, // @typescript-eslint/switch-exhaustiveness-check works better