-
Notifications
You must be signed in to change notification settings - Fork 123
/
.eslintrc.json
69 lines (69 loc) · 1.72 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
66
67
68
69
{
"root": true,
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 5,
"ecmaFeatures": {
"globalReturn": true,
"impliedStrict": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"shared-node-browser": true,
"worker": true,
"mocha": true
},
"ignorePatterns": [
"encoding.js",
"encoding.min.js"
],
"rules": {
"comma-dangle": ["error", "never"],
"indent": [
"error", 2, {
"ArrayExpression": 1,
"ignoreComments": true,
"ignoredNodes": ["ConditionalExpression"],
"MemberExpression": 1,
"ObjectExpression": 1,
"outerIIFEBody": "off",
"SwitchCase": 1,
"VariableDeclarator": "first"
}
],
"key-spacing": [
"error", {
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": "error",
"max-len": [
"error", {
"code": 120,
"tabWidth": 2,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-empty": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 2 }],
"no-unused-vars": ["error", { "args": "none" }],
"no-tabs": "error",
"no-useless-escape": "warn",
"no-console": "warn",
"no-undef": "error",
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
"semi": "error",
"space-infix-ops": "error",
"space-unary-ops": "error"
}
}