-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
50 lines (50 loc) · 1007 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
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
},
'extends': [
'google',
'eslint:recommended'
],
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
},
'parserOptions': {
'ecmaVersion': 2018,
},
'rules': {
'eol-last': 'off',
'indent': ['warn', 4],
'linebreak-style': [
'error',
'windows'
],
'max-len': 'off',
'new-cap': 'off',
'no-alert': 'warn',
'no-console': 'off',
'no-dupe-args': 'error',
'no-eq-null': 'off',
'no-fallthrough': 'error',
'no-floating-decimal': 'off',
'no-global-assign': 'error',
'no-multi-str': 'off',
'no-redeclare': 'error',
'no-sequences': 'off',
'no-unused-vars': 'off',
'no-useless-escape': 'off',
'quotes': [
'error',
'single'
],
'require-atomic-updates': 'off',
'semi': [
'error',
'always'
],
'space-before-function-paren': ["warn", "always"],
},
};