-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
40 lines (40 loc) · 927 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
extends: [
'kentcdodds',
'kentcdodds/react',
'kentcdodds/jsx-a11y',
'prettier',
'plugin:prettier/recommended',
'plugin:@next/next/recommended',
],
plugins: ['prettier'],
rules: {
'new-cap': 'off',
'no-await-in-loop': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/no-invalid-html-attribute': 'off',
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-argument': 'warn',
'import/consistent-type-specifier-style': 'off',
},
},
],
};