-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint', 'prettier'],
extends: [
'plugin:react/recommended',
'airbnb',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/prop-types': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-indent': 'off',
'react/jsx-wrap-multilines': [
'error',
{ declaration: false, assignment: false },
],
'import/extensions': 'off',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};