-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (41 loc) · 1.03 KB
/
.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 = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': 0,
'no-use-before-define': 0,
'react/jsx-filename-extension': 0,
'import/extensions': 0,
'import/no-unresolved': 0,
'react/require-default-props': 0,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
alias: {
map: [
['@', './src'],
['@api', './src/api'],
['@common', './src/common'],
['@hooks', './src/hooks'],
['@pages', './src/pages'],
['@store', './src/store'],
['@themes', './src/themes'],
['@utils', './src/utils'],
['@public', './public'],
],
},
},
},
};