@willbooster/eslint-config-next 2.5.3 → 2.5.5
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 +2 -2
package/eslint.config.js
CHANGED
|
@@ -182,6 +182,8 @@ const config = [
|
|
|
182
182
|
},
|
|
183
183
|
rules: {
|
|
184
184
|
'@typescript-eslint/camelcase': 'off', // c.f. https://github.com/typescript-eslint/typescript-eslint/issues/2050
|
|
185
|
+
// because `interface Param` cause errors on Next.js
|
|
186
|
+
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
|
|
185
187
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
186
188
|
'@typescript-eslint/explicit-function-return-type': [
|
|
187
189
|
'error',
|
|
@@ -262,6 +264,7 @@ const config = [
|
|
|
262
264
|
],
|
|
263
265
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }], // allow unused vars in object destructuring
|
|
264
266
|
'@typescript-eslint/no-use-before-define': 'off', // abstract code should appear first
|
|
267
|
+
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignorePrimitives: true }], // allow || for string, number, bigint and boolean
|
|
265
268
|
'@typescript-eslint/restrict-template-expressions': 'off', // Allow any values in template literals
|
|
266
269
|
},
|
|
267
270
|
},
|
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.5",
|
|
4
4
|
"description": "A ESLint flat config for Next.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "WillBooster Inc.",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
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
34
|
"eslint-config-next": "15.4.6",
|
|
35
35
|
"eslint-config-prettier": "10.1.8",
|