-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.35 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
module.exports = {
env: {
es6: true,
node: true
},
parserOptions: {
ecmaVersion: 6,
},
extends: 'eslint:recommended',
rules: {
'no-console': 'warn',
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'brace-style': ['error', 'stroustrup'],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'consistent-return': 'error',
'template-curly-spacing': ['error', 'always'],
'prefer-template': 'warn',
'no-new-symbol': 'error',
'prefer-const': 'error',
'no-multi-spaces': 'error',
'no-const-assign': 1,
'no-extra-semi': 0,
semi: 0,
'no-fallthrough': 0,
'no-empty': 0,
'no-mixed-spaces-and-tabs': 0,
'no-redeclare': 0,
'no-this-before-super': 1,
'no-undef': 1,
'no-unreachable': 1,
'no-use-before-define': 0,
'constructor-super': 1,
curly: 0,
eqeqeq: 0,
'func-names': 0,
'valid-typeof': 1,
},
};