@willbooster/eslint-config-next 2.0.4 → 2.1.0

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/eslint.config.js +14 -0
  2. package/package.json +6 -4
package/eslint.config.js CHANGED
@@ -5,6 +5,7 @@ import { fileURLToPath } from 'node:url';
5
5
 
6
6
  import { FlatCompat } from '@eslint/eslintrc';
7
7
  import js from '@eslint/js';
8
+ import eslintConfigFlatGitignore from 'eslint-config-flat-gitignore';
8
9
  import eslintConfigPrettier from 'eslint-config-prettier';
9
10
  import eslintPluginReact from 'eslint-plugin-react';
10
11
  import eslintPluginSortClassMembers from 'eslint-plugin-sort-class-members';
@@ -234,6 +235,17 @@ const config = [
234
235
  },
235
236
  ],
236
237
  '@typescript-eslint/no-explicit-any': 'error', // let's try avoiding `any`
238
+ '@typescript-eslint/no-misused-promises': [
239
+ // for React components
240
+ // cf. https://typescript-eslint.io/rules/no-misused-promises/#checksvoidreturn
241
+ 'error',
242
+ {
243
+ checksVoidReturn: {
244
+ arguments: false,
245
+ attributes: false,
246
+ },
247
+ },
248
+ ],
237
249
  '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }], // allow unused vars in object destructuring
238
250
  '@typescript-eslint/no-use-before-define': 'off', // abstract code should appear first
239
251
  },
@@ -257,6 +269,8 @@ const config = [
257
269
  ],
258
270
  },
259
271
  },
272
+ // Add eslint-config-flat-gitignore before eslintConfigPrettier
273
+ eslintConfigFlatGitignore(),
260
274
  // cf. https://github.com/prettier/eslint-config-prettier#installation
261
275
  eslintConfigPrettier,
262
276
  // -----------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-next",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "description": "A ESLint flat config for Next.js",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -21,15 +21,16 @@
21
21
  "prettier": "@willbooster/prettier-config",
22
22
  "devDependencies": {
23
23
  "@eslint/eslintrc": "3.3.0",
24
- "@eslint/js": "9.21.0",
24
+ "@eslint/js": "9.22.0",
25
25
  "@types/eslint": "9.6.1",
26
26
  "@types/micromatch": "4.0.9",
27
- "@types/node": "22.13.9",
27
+ "@types/node": "22.13.10",
28
28
  "@types/react": "19.0.10",
29
29
  "@willbooster/prettier-config": "10.0.0",
30
30
  "eslint": "9.21.0",
31
+ "eslint-config-flat-gitignore": "2.1.0",
31
32
  "eslint-config-next": "15.2.1",
32
- "eslint-config-prettier": "10.0.2",
33
+ "eslint-config-prettier": "10.1.1",
33
34
  "eslint-import-resolver-typescript": "3.8.3",
34
35
  "eslint-plugin-import-x": "4.6.1",
35
36
  "eslint-plugin-react": "7.37.4",
@@ -53,6 +54,7 @@
53
54
  "@eslint/eslintrc": ">=3",
54
55
  "@eslint/js": ">=9",
55
56
  "eslint": ">=9",
57
+ "eslint-config-flat-gitignore": ">=2.1",
56
58
  "eslint-config-next": ">=15",
57
59
  "eslint-config-prettier": ">=10",
58
60
  "eslint-import-resolver-typescript": ">=3",