@forsakringskassan/eslint-config 15.3.13 → 15.3.16

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/index.mjs +4 -1
  2. package/package.json +3 -3
package/index.mjs CHANGED
@@ -209,6 +209,7 @@ export default [
209
209
  "sonarjs/no-small-switch": "off", // prefer to use small switches when the intention is to all more cases later
210
210
  "sonarjs/no-trivial-assertions": "off", // produces a bit too much noise
211
211
  "sonarjs/no-unused-vars": "off", // covered by @typescript-eslint/no-unused-vars
212
+ "sonarjs/parameterized-tests": "off", // prefer explicit test titles over non-descript parameterized
212
213
  "sonarjs/prefer-nullish-coalescing": "off", // requires typescript and strictNullChecks, which is sane, but we also use @typescript-eslint/prefer-nullish-coalescing so this becomes redundant
213
214
  "sonarjs/prefer-regexp-exec": "off", // covered by @typescript-eslint/prefer-regexp-exec
214
215
  "sonarjs/redundant-type-aliases": "off", // "redundant" type aliases helps with self-documenting code
@@ -285,8 +286,8 @@ export default [
285
286
  "unicorn/prefer-https",
286
287
  "unicorn/prefer-includes-over-repeated-comparisons",
287
288
  "unicorn/prefer-iterator-helpers",
288
- "unicorn/prefer-iterator-to-array-at-end",
289
289
  "unicorn/prefer-iterator-to-array",
290
+ "unicorn/prefer-iterator-to-array-at-end",
290
291
  "unicorn/prefer-logical-operator-over-ternary",
291
292
  "unicorn/prefer-math-constants",
292
293
  "unicorn/prefer-modern-dom-apis",
@@ -295,9 +296,11 @@ export default [
295
296
  "unicorn/prefer-object-iterable-methods",
296
297
  "unicorn/prefer-queue-microtask",
297
298
  "unicorn/prefer-set-has",
299
+ "unicorn/prefer-simple-sort-comparator",
298
300
  "unicorn/prefer-split-limit",
299
301
  "unicorn/prefer-string-repeat",
300
302
  "unicorn/prefer-string-replace-all",
303
+ "unicorn/prefer-switch",
301
304
  "unicorn/prefer-toggle-attribute",
302
305
  "unicorn/prefer-type-literal-last",
303
306
  "unicorn/prefer-unicode-code-point-escapes",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/eslint-config",
3
- "version": "15.3.13",
3
+ "version": "15.3.16",
4
4
  "description": "Försäkringskassans eslint shareable config",
5
5
  "keywords": [
6
6
  "eslint"
@@ -32,7 +32,7 @@
32
32
  "eslint-plugin-import-x": "4.17.1",
33
33
  "eslint-plugin-prettier": "5.5.6",
34
34
  "eslint-plugin-regexp": "3.1.1",
35
- "eslint-plugin-sonarjs": "4.1.0",
35
+ "eslint-plugin-sonarjs": "4.2.0",
36
36
  "eslint-plugin-unicorn": "70.0.0",
37
37
  "globals": "17.7.0"
38
38
  },
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": "^22.13 || >= 24"
44
44
  },
45
- "gitHead": "de7a2ea9576a655c1a9143ddc8a194cd45fdb50d"
45
+ "gitHead": "700bdb2e728bcd15b241b66a31012c1cacc98009"
46
46
  }