forked from heapwolf/lev
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
52 lines (52 loc) · 1.44 KB
/
.eslintrc
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
// This config file is used by eslint
// See package.json scripts: lint*
// Rules documentation: https://eslint.org/docs/rules/
{
"root": true,
"env": {
"browser": false,
"commonjs": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"extends": [
// See https://github.com/standard/eslint-config-standard/blob/master/eslintrc.json
"standard"
],
"plugins": [
"unicorn"
],
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-parens": [ "error", "as-needed" ],
"comma-dangle": [ "error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"eqeqeq": [ "error", "smart" ],
"implicit-arrow-linebreak": [ "error", "beside" ],
"indent": [ "error", 2, { "MemberExpression": "off" } ],
"no-var": "error",
"nonblock-statement-body-position": [ "error", "beside" ],
"object-curly-spacing": [ "error", "always" ],
"object-shorthand": [ "error", "properties" ],
"one-var": [ "off" ],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"unicorn/prefer-node-protocol": [ "error", { "checkRequire": true } ]
},
"globals": {
// Mocha globals
"it": "readonly",
"xit": "readonly",
"describe": "readonly",
"xdescribe": "readonly",
"beforeEach": "readonly",
"before": "readonly"
}
}