@crycode/eslint-config 2.1.2 → 2.2.1

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
@@ -59,6 +59,15 @@ If you habe multiple tsconfig files, add them all to `project` array:
59
59
  Placeholder for the next version (at the beginning of the line):
60
60
  ### **WORK IN PROGRESS**
61
61
  -->
62
+ ### 2.2.1 (2025-05-02)
63
+
64
+ * Updated to latest `eslint` and `typescript-eslint`
65
+
66
+ ### 2.2.0 (2024-11-27)
67
+
68
+ * Updated rule options for `@typescript-eslint/switch-exhaustiveness-check`
69
+ * Updated to latest `eslint` and `typescript-eslint`
70
+
62
71
  ### 2.1.2 (2024-10-16)
63
72
 
64
73
  * Fixed TS types
@@ -123,7 +132,7 @@ If you habe multiple tsconfig files, add them all to `project` array:
123
132
 
124
133
  MIT License
125
134
 
126
- Copyright (c) 2021-2024 Peter Müller <peter@crycode.de>
135
+ Copyright (c) 2021-2025 Peter Müller <peter@crycode.de>
127
136
 
128
137
  Permission is hereby granted, free of charge, to any person obtaining a copy
129
138
  of this software and associated documentation files (the "Software"), to deal
package/configs/ts.js CHANGED
@@ -228,7 +228,13 @@ export default [
228
228
  'always',
229
229
  ],
230
230
 
231
- '@typescript-eslint/switch-exhaustiveness-check': 'warn',
231
+ '@typescript-eslint/switch-exhaustiveness-check': [
232
+ 'warn',
233
+ {
234
+ considerDefaultExhaustiveForUnions: true,
235
+ requireDefaultForNonUnion: true,
236
+ },
237
+ ],
232
238
 
233
239
  '@typescript-eslint/unbound-method': 'off',
234
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crycode/eslint-config",
3
- "version": "2.1.2",
3
+ "version": "2.2.1",
4
4
  "description": "ESLint configuration to be used with JavaScript or TypeScript according to my personal preferences",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -32,19 +32,18 @@
32
32
  "url": "https://github.com/crycode-de/eslint-config.git"
33
33
  },
34
34
  "dependencies": {
35
- "@eslint/js": "^9.12.0",
36
- "@stylistic/eslint-plugin": "^2.9.0",
37
- "@stylistic/eslint-plugin-js": "^2.9.0",
38
- "@types/eslint__js": "^8.42.3"
35
+ "@eslint/js": "^9.25.1",
36
+ "@stylistic/eslint-plugin": "^4.2.0",
37
+ "@stylistic/eslint-plugin-js": "^4.2.0"
39
38
  },
40
39
  "peerDependencies": {
41
- "eslint": "^9.12.0",
42
- "typescript-eslint": "^8.9.0"
40
+ "eslint": "^9.25.1",
41
+ "typescript-eslint": "^8.31.1"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@alcalzone/release-script": "^3.8.0",
46
45
  "@alcalzone/release-script-plugin-license": "^3.7.0",
47
46
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
48
- "eslint": "^9.12.0"
47
+ "eslint": "^9.25.1"
49
48
  }
50
49
  }