Skip to content

Commit 26401d0

Browse files
committed
Refactor ESLint configuration to broaden file patterns and adjust rule settings
1 parent 78f3abc commit 26401d0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

packages/eslint-config-widen-react/src/react.ts

+3-9
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,16 @@ export default [
5353
},
5454
},
5555
{
56-
files: ['*.tsx', '*.{spec,test}.{js,jsx}'],
57-
languageOptions,
58-
rules: {
59-
'react/prop-types': 'off',
60-
},
61-
},
62-
{
63-
files: ['*.{spec,test}.{tsx,js,jsx}'],
56+
files: ['**/*.{spec,test}.{tsx,js,jsx}'],
6457
languageOptions,
6558
rules: {
6659
'react/button-has-type': 'off',
6760
'react/display-name': 'off',
61+
'react/prop-types': 'off',
6862
},
6963
},
7064
{
71-
files: ['*.tsx', '*.{spec,test}.{js,jsx}'],
65+
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
7266
languageOptions,
7367
rules: {
7468
'jsx-a11y/click-events-have-key-events': 'warn',

packages/eslint-config-widen-typescript/src/typescript.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { configs, parser, plugin } from 'typescript-eslint'
44
export default [
55
...configs.recommended,
66
{
7+
files: ['**/*.ts', '**/*.tsx'],
78
languageOptions: {
89
parser: parser,
910
},
@@ -18,6 +19,7 @@ export default [
1819
'@typescript-eslint/explicit-module-boundary-types': 'off',
1920
'@typescript-eslint/no-empty-function': 'off',
2021
'@typescript-eslint/no-empty-interface': 'off',
22+
'@typescript-eslint/no-empty-object-type': 'off',
2123
'@typescript-eslint/no-explicit-any': 'off',
2224
'@typescript-eslint/no-extra-semi': 'off',
2325
'@typescript-eslint/no-non-null-assertion': 'off',

0 commit comments

Comments
 (0)