-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
37 lines (37 loc) · 941 Bytes
/
.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
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true,
'jest': true
},
'parser': '@babel/eslint-parser',
'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'impliedStrict': true
},
'requireConfigFile': false
},
'rules': {
'quotes': ['warn', 'single'],
'linebreak-style': [0, 'error', 'windows'],
'indent': ['error', 2],
'semi': ['error', 'always'],
'comma-dangle': ['warn', 'never'],
'no-cond-assign': ['error', 'always'],
'no-console': 'off',
'accessor-pairs': 'error',
'default-case':'error',
'no-eval': 'error',
'no-use-before-define': 'warn',
'max-len': 'off',
'object-curly-spacing': ['warn', 'always', { 'arraysInObjects': false, 'objectsInObjects': false }]
}
};