@willbooster/eslint-config-next 2.0.3 → 2.0.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.
Files changed (2) hide show
  1. package/eslint.config.js +27 -16
  2. package/package.json +1 -1
package/eslint.config.js CHANGED
@@ -39,23 +39,23 @@ const config = [
39
39
  {
40
40
  ignores: [
41
41
  // Directories
42
- '.yarn/**',
43
- '3rd-party/**',
44
- '@types/**',
45
- '__generated__/**',
46
- 'android/**',
47
- 'bin/**',
48
- 'build/**',
49
- 'coverage/**',
50
- 'dist/**',
51
- 'ios/**',
52
- 'no-format/**',
53
- 'node_modules/**',
54
- 'temp/**',
55
- 'test-fixtures/**',
42
+ '**/.yarn/**',
43
+ '**/3rd-party/**',
44
+ '**/@types/**',
45
+ '**/__generated__/**',
46
+ '**/android/**',
47
+ '**/bin/**',
48
+ '**/build/**',
49
+ '**/coverage/**',
50
+ '**/dist/**',
51
+ '**/ios/**',
52
+ '**/no-format/**',
53
+ '**/node_modules/**',
54
+ '**/temp/**',
55
+ '**/test-fixtures/**',
56
56
  // Files
57
- '*.d.ts',
58
- '*.min.*js',
57
+ '**/*.d.ts',
58
+ '**/*.min.*js',
59
59
  ],
60
60
  },
61
61
  // cf. https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js
@@ -234,6 +234,17 @@ const config = [
234
234
  },
235
235
  ],
236
236
  '@typescript-eslint/no-explicit-any': 'error', // let's try avoiding `any`
237
+ '@typescript-eslint/no-misused-promises': [
238
+ // for React components
239
+ // cf. https://typescript-eslint.io/rules/no-misused-promises/#checksvoidreturn
240
+ 'error',
241
+ {
242
+ checksVoidReturn: {
243
+ arguments: false,
244
+ attributes: false,
245
+ },
246
+ },
247
+ ],
237
248
  '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }], // allow unused vars in object destructuring
238
249
  '@typescript-eslint/no-use-before-define': 'off', // abstract code should appear first
239
250
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-next",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "A ESLint flat config for Next.js",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",