-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
65 lines (65 loc) · 1.53 KB
/
.eslintrc.json
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"extends": ["eslint:recommended", "plugin:mocha/recommended", "airbnb"],
"env": {
"browser": true,
"es6": true,
"jquery": true,
"node": true,
"mocha": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"arrow-body-style": [2, "as-needed"],
"camelcase": "off",
"class-methods-use-this": "off",
"eqeqeq": 2,
"indent": ["error", 2, {
"FunctionDeclaration": {
"parameters": "first"
},
"SwitchCase": 1
}],
"max-len": "off",
"no-console": 1,
"no-multi-spaces": [2, {
"exceptions": {
"ObjectExpression": true
}
}],
"no-param-reassign": "off",
"no-undef-init": 2,
"no-undefined": 2,
"no-underscore-dangle": "off",
"no-unused-expressions": 0,
"no-unused-vars": [2, {
"vars": "all",
"args": "none"
}],
"no-use-before-define": "off",
"no-useless-constructor": 2,
"object-curly-newline": "off",
"semi": [2, "always"],
"comma-dangle": ["error", "always-multiline"],
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"chai-friendly/no-unused-expressions": 2
},
"globals": {
"assert": false,
"expect": false,
"should": false,
"sinon": false,
"Promise": false,
"ES6Promise": false,
"google": false,
"URI": false,
"_": false
},
"plugins": ["chai-expect", "chai-friendly", "mocha"]
}