@crycode/eslint-config 2.0.2 → 2.1.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.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/configs/ts.js +19 -2
  3. package/package.json +7 -7
package/README.md CHANGED
@@ -59,6 +59,16 @@ 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.1.1 (2024-09-13)
63
+
64
+ * Updated to latest `eslint` and `typescript-eslint` version
65
+
66
+ ### 2.1.0 (2024-09-01)
67
+
68
+ * TypeScript config now uses type checked rules
69
+ * Updated dependencies
70
+ * Added some rules
71
+
62
72
  ### 2.0.2 (2024-08-28)
63
73
 
64
74
  * Configure rule `@typescript-eslint/return-await` to always force `return await`
package/configs/ts.js CHANGED
@@ -3,8 +3,8 @@ import js from './js.js';
3
3
 
4
4
  export default [
5
5
  ...js,
6
- ...tseslint.configs.recommended,
7
- ...tseslint.configs.stylistic,
6
+ ...tseslint.configs.recommendedTypeChecked,
7
+ ...tseslint.configs.stylisticTypeChecked,
8
8
  {
9
9
  languageOptions: {
10
10
  parserOptions: {
@@ -124,6 +124,8 @@ export default [
124
124
 
125
125
  '@typescript-eslint/no-confusing-non-null-assertion': 'error',
126
126
 
127
+ '@typescript-eslint/no-deprecated': 'warn',
128
+
127
129
  'no-implied-eval': 'off',
128
130
  '@typescript-eslint/no-implied-eval': 'error',
129
131
 
@@ -138,6 +140,13 @@ export default [
138
140
  'no-loss-of-precision': 'off',
139
141
  '@typescript-eslint/no-loss-of-precision': 'error',
140
142
 
143
+ '@typescript-eslint/no-misused-promises': [
144
+ 'error',
145
+ {
146
+ checksVoidReturn: false,
147
+ },
148
+ ],
149
+
141
150
  '@typescript-eslint/no-namespace': 'error',
142
151
 
143
152
  '@typescript-eslint/parameter-properties': 'error',
@@ -189,6 +198,8 @@ export default [
189
198
 
190
199
  '@typescript-eslint/prefer-optional-chain': 'warn',
191
200
 
201
+ '@typescript-eslint/prefer-regexp-exec': 'warn',
202
+
192
203
  '@typescript-eslint/prefer-string-starts-ends-with': 'warn',
193
204
 
194
205
  '@typescript-eslint/prefer-ts-expect-error': 'warn',
@@ -200,6 +211,8 @@ export default [
200
211
  },
201
212
  ],
202
213
 
214
+ '@typescript-eslint/require-await': 'warn',
215
+
203
216
  '@typescript-eslint/restrict-plus-operands': [
204
217
  'error',
205
218
  {
@@ -207,6 +220,8 @@ export default [
207
220
  },
208
221
  ],
209
222
 
223
+ '@typescript-eslint/restrict-template-expressions': 'off',
224
+
210
225
  'no-return-await': 'off',
211
226
  '@typescript-eslint/return-await': [
212
227
  'warn',
@@ -215,6 +230,8 @@ export default [
215
230
 
216
231
  '@typescript-eslint/switch-exhaustiveness-check': 'warn',
217
232
 
233
+ '@typescript-eslint/unbound-method': 'off',
234
+
218
235
  '@typescript-eslint/unified-signatures': 'warn',
219
236
  },
220
237
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crycode/eslint-config",
3
- "version": "2.0.2",
3
+ "version": "2.1.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,19 @@
32
32
  "url": "https://github.com/crycode-de/eslint-config.git"
33
33
  },
34
34
  "dependencies": {
35
- "@eslint/js": "^9.9.0",
36
- "@stylistic/eslint-plugin": "^2.6.4",
37
- "@stylistic/eslint-plugin-js": "^2.6.4",
35
+ "@eslint/js": "^9.10.0",
36
+ "@stylistic/eslint-plugin": "^2.8.0",
37
+ "@stylistic/eslint-plugin-js": "^2.8.0",
38
38
  "@types/eslint__js": "^8.42.3"
39
39
  },
40
40
  "peerDependencies": {
41
- "eslint": "^9.9.0",
42
- "typescript-eslint": "^8.1.0"
41
+ "eslint": "^9.10.0",
42
+ "typescript-eslint": "^8.5.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@alcalzone/release-script": "^3.8.0",
46
46
  "@alcalzone/release-script-plugin-license": "^3.7.0",
47
47
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
48
- "eslint": "^9.9.0"
48
+ "eslint": "^9.10.0"
49
49
  }
50
50
  }