-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1.18 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
42
43
44
module.exports = {
parser: '@typescript-eslint/parser',
env: {
es6: true,
browser: true,
node: true,
jest: true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'arrow-body-style': 'warn',
'linebreak-style': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'warn',
'global-require': 'off',
'no-async-promise-executor': 'off',
'max-classes-per-file': ['error', 2],
'class-methods-use-this': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.tsx'] }],
'react/prop-types': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'import/prefer-default-export': 'off'
},
settings: {
react: {
version: 'detect'
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.tsx', '.ts'],
moduleDirectory: ['node_modules', 'src/']
}
}
},
extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:@typescript-eslint/recommended'],
plugins: ['react', 'react-hooks', 'jsx-a11y', 'import', 'prettier', 'you-dont-need-momentjs']
};