-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.58 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
45
46
47
48
49
50
51
52
53
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: { delimiter: 'none' },
singleline: { delimiter: 'comma' },
}],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'comma-dangle': ['error', 'always-multiline'],
'eol-last': ['error', 'always'],
'import/exports-last': ['error'],
'import/first': ['error'],
'import/newline-after-import': ['error', { 'count': 2 }],
'import/no-anonymous-default-export': ['error'],
'import/no-cycle': ['error'],
'import/no-self-import': ['error'],
'import/no-unresolved': ['error'],
'import/no-useless-path-segments': ['error'],
'indent': ['error', 2],
'no-trailing-spaces': ['error'],
'quote-props': ['error', 'consistent-as-needed'],
'quotes': ['error', 'single'],
'react/prop-types': 0,
'semi': ['error', 'never'],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
react: {
version: 'detect',
},
},
};