-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
40 lines (40 loc) · 976 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
module.exports = {
env: {
es6: true,
node: true,
browser: true,
mocha: true,
},
extends: ['eslint:recommended'],
rules: {
// Custom eslint rules
'dot-notation': [1],
strict: [0],
'space-infix-ops': [1],
'space-in-parens': [0],
'keyword-spacing': [1],
'no-useless-escape': [0],
'no-unused-vars': [0, { varsIgnorePattern: 'should|expect' }],
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
eqeqeq: [0],
'no-unreachable': [2],
'no-redeclare': [1],
'no-console': [0],
'no-undef': [2],
},
globals: {
$: false,
jQuery: false,
user_data: false,
Promise: false,
Buffer: false,
process: false,
io: false
},
parserOptions: {
ecmaVersion: 2017,
},
};