-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (34 loc) · 903 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
41
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'jsx-a11y', 'prettier'],
rules: {
// Import rules
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
// TypeScript rules
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/ban-types': 0,
},
settings: {
'import/resolver': {
typescript: {
project: ['./tsconfig.json'],
},
},
},
};