@ethang/eslint-config 19.0.2 → 19.0.4

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.
Files changed (2) hide show
  1. package/eslint.config.js +5 -3
  2. package/package.json +1 -1
package/eslint.config.js CHANGED
@@ -547,7 +547,7 @@ export default tseslint.config({
547
547
  "sonar/cookie-no-httponly": "error",
548
548
  "sonar/cors": "error",
549
549
  "sonar/csrf": "error",
550
- "sonar/cyclomatic-complexity": "error",
550
+ "sonar/cyclomatic-complexity": "off", // too hard
551
551
  "sonar/declarations-in-global-scope": "error",
552
552
  "sonar/default-param-last": "error",
553
553
  "sonar/deprecation": "error",
@@ -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",
@@ -592,7 +594,7 @@ export default tseslint.config({
592
594
  "sonar/label-position": "error",
593
595
  "sonar/link-with-target-blank": "error",
594
596
  "sonar/max-switch-cases": "error",
595
- "sonar/max-union-size": "error",
597
+ "sonar/max-union-size": "off", // No
596
598
  "sonar/media-has-caption": "error",
597
599
  "sonar/misplaced-loop-counter": "error",
598
600
  "sonar/mouse-events-a11y": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.0.2",
3
+ "version": "19.0.4",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },