-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
58 lines (57 loc) · 1.93 KB
/
Copy path.eslintrc.js
File metadata and controls
58 lines (57 loc) · 1.93 KB
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
54
55
56
57
58
module.exports = {
'extends': 'eslint:recommended',
'env': {
'node': true,
'es6': true,
'jest/globals': true
},
'parserOptions': {
'ecmaVersion': 2018
},
'plugins': ['jest'],
'rules': {
'array-bracket-newline': ['error', 'consistent'],
'array-bracket-spacing': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'camelcase': 'error',
'comma-dangle': 'error',
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': 'error',
'eol-last': 'error',
'func-call-spacing': 'error',
'indent': ['error', 2, { 'SwitchCase': 1, 'CallExpression': { 'arguments': 1 } }],
'key-spacing': 'error',
'keyword-spacing': 'error',
'lines-between-class-members': 'error',
'multiline-comment-style': 'error',
'no-console': 'off',
'no-lonely-if': 'error',
'no-multi-assign': 'error',
'no-multiple-empty-lines': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': 'error',
'object-curly-newline': ['error', { 'multiline': true, 'consistent': true }],
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', 'never'],
'padded-blocks': ['error', 'never'],
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }],
'semi': ['error', 'never'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', { 'anonymous': 'never', 'named': 'never', 'asyncArrow': 'always' }],
'space-in-parens': 'error',
'arrow-parens': ['error', 'as-needed'],
'arrow-spacing': 'error',
'no-duplicate-imports': 'error',
'no-var': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'rest-spread-spacing': 'error',
'template-curly-spacing': 'error',
}
}