This repository has been archived by the owner on Apr 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
52 lines (51 loc) · 2.48 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
module.exports = {
'parserOptions': {
'parser': 'babel-eslint',
'ecmaVersion': 8,
'sourceType': 'module'
},
'env': {
'browser': true,
'node': true
},
'extends': 'eslint:recommended',
'rules': {
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'comma-dangle': ['error', 'never'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'comma-style': ['error', 'last'],
'curly': ['error'],
'indent': ['error', 2, { 'SwitchCase': 1 }],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'no-multi-spaces': ['error'],
'no-restricted-syntax': ['error',
{
'selector': 'ArrowFunctionExpression',
'message': 'Do not use Arrow Functions'
},
{
'selector': 'ClassBody',
'message': 'Do not use classes.'
},
{
'selector': 'ClassDeclaration',
'message': 'Do not use classes.'
},
{
'selector': 'TemplateLiteral',
'message': 'Do not use template literals.'
}
],
'no-ternary': ['error'],
'no-unused-vars': ['error', { 'args': 'all' }],
'object-shorthand': ['error', 'never'],
'one-var': ['error', 'never'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', 'always'],
'space-in-parens': ['error', 'never'],
'space-infix-ops': ['error'],
'spaced-comment': ['error', 'always']
}
};