-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 982 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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: "eslint:recommended",
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
"ecmaVersion": 2018,
experimentalDecorators: true,
sourceType: "module",
},
rules: {
"linebreak-style": [
"error",
"unix"
],
"no-unused-vars": 0,
"no-console": 0,
"array-callback-return": 1,
"no-unreachable": 0,
"no-mixed-spaces-and-tabs": 1,
"no-const-assign": 2,
"no-duplicate-imports": 2,
"no-useless-rename": 1,
"no-irregular-whitespace": 1,
"no-case-declarations": 0,
"no-constant-condition": 0,
"no-unneeded-ternary": 0,
"no-empty": 0,
"no-lonely-if": 0,
"no-useless-catch": 0,
"no-async-promise-executor": 0,
},
globals: {
process: true,
__dirname: true,
// Mocha tests
describe: true,
it: true,
}
}