-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.2 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
module.exports = {
'env': {
'browser': true,
'es6': true,
},
'extends': [
'eslint:recommended',
'airbnb-base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
},
'plugins': ['@typescript-eslint'],
'rules': {
'arrow-body-style': 0,
'arrow-parens': ['warn', 'always'],
'eol-last': ['error', 'always'],
'indent': ['error', 'tab', {'SwitchCase': 1}],
'no-confusing-arrow': ['error', {'allowParens': true}],
'no-new': 0,
'no-param-reassign': ['error', {'props': false}],
'no-tabs': 0,
'no-unused-expressions': [2, {'allowTernary': true}],
'operator-assignment': 0,
'prefer-destructuring': 0,
'quote-props': ['warn', 'consistent'],
'object-curly-newline': ['warn', {
'ObjectExpression': {'multiline': true, 'consistent': true},
'ObjectPattern': {'multiline': true, 'consistent': true},
'ImportDeclaration': {'multiline': true, 'consistent': true},
'ExportDeclaration': {'multiline': true, 'consistent': true}
}],
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.ts'],
},
},
},
};