@willbooster/eslint-config-next 2.5.2 → 2.5.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.
- package/eslint.config.js +3 -0
- package/package.json +7 -7
package/eslint.config.js
CHANGED
|
@@ -246,6 +246,8 @@ const config = [
|
|
|
246
246
|
format: null,
|
|
247
247
|
},
|
|
248
248
|
],
|
|
249
|
+
// We prefer https://typescript-eslint.io/rules/no-non-null-assertion/ to this
|
|
250
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
249
251
|
'@typescript-eslint/no-explicit-any': 'error', // let's try avoiding `any`
|
|
250
252
|
'@typescript-eslint/no-misused-promises': [
|
|
251
253
|
// for React components
|
|
@@ -260,6 +262,7 @@ const config = [
|
|
|
260
262
|
],
|
|
261
263
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }], // allow unused vars in object destructuring
|
|
262
264
|
'@typescript-eslint/no-use-before-define': 'off', // abstract code should appear first
|
|
265
|
+
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignorePrimitives: true }], // allow || for string, number, bigint and boolean
|
|
263
266
|
'@typescript-eslint/restrict-template-expressions': 'off', // Allow any values in template literals
|
|
264
267
|
},
|
|
265
268
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/eslint-config-next",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "A ESLint flat config for Next.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "WillBooster Inc.",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"prettier": "@willbooster/prettier-config",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@eslint/eslintrc": "3.3.1",
|
|
26
|
-
"@eslint/js": "9.
|
|
26
|
+
"@eslint/js": "9.33.0",
|
|
27
27
|
"@types/eslint": "9.6.1",
|
|
28
28
|
"@types/micromatch": "4.0.9",
|
|
29
|
-
"@types/node": "24.1
|
|
29
|
+
"@types/node": "24.2.1",
|
|
30
30
|
"@types/react": "19.1.9",
|
|
31
31
|
"@willbooster/prettier-config": "10.2.0",
|
|
32
|
-
"eslint": "9.
|
|
32
|
+
"eslint": "9.33.0",
|
|
33
33
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
34
|
-
"eslint-config-next": "15.4.
|
|
34
|
+
"eslint-config-next": "15.4.6",
|
|
35
35
|
"eslint-config-prettier": "10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
37
37
|
"eslint-plugin-import-x": "4.16.1",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"eslint-plugin-unicorn": "60.0.0",
|
|
44
44
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
45
45
|
"globals": "16.3.0",
|
|
46
|
-
"lint-staged": "16.1.
|
|
46
|
+
"lint-staged": "16.1.5",
|
|
47
47
|
"micromatch": "4.0.8",
|
|
48
|
-
"next": "15.4.
|
|
48
|
+
"next": "15.4.6",
|
|
49
49
|
"prettier": "3.6.2",
|
|
50
50
|
"prettier-plugin-java": "2.7.4",
|
|
51
51
|
"react": "19.1.1",
|