Repository navigation
Expand file tree
/
Copy path.eslintrc.json
More file actions
118 lines (115 loc) · 2.8 KB
/
Copy path.eslintrc.json
File metadata and controls
118 lines (115 loc) · 2.8 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script",
"ecmaFeatures": {}
},
// Rules reference: https://eslint.org/docs/rules/
"rules": {
// Possible Errors
"for-direction": "error",
"getter-return": "error",
"no-await-in-loop": "off",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-console": "off",
"no-constant-condition": "off",
"no-control-regex": "off",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": [
"error", {
"allowEmptyCatch": true
}
],
"no-empty-character-class": "off",
"no-ex-assign": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "off",
"use-isnan": "error",
"valid-jsdoc": [
"error", {
"prefer": {
"return": "returns"
},
"preferType": {
"boolean": "Boolean",
"function": "Function",
"number": "Number",
"object": "Object",
"string": "String"
},
"requireReturn": false
}
],
"valid-typeof": "error",
// Best Practices
"accessor-pairs": "error",
"no-floating-decimal": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-octal": "error",
"no-redeclare": "error",
"no-unmodified-loop-condition": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
// Variables
"no-undef-init": "error",
// Stylistic Issues
"brace-style": "error",
"comma-dangle": [
"error", "never"
],
"comma-style": ["error", "last"],
"func-call-spacing": ["error", "never"],
"indent": [
"error", 4, {
"SwitchCase": 1,
"CallExpression": {
"arguments": "first"
},
"ignoreComments": true
}
],
"key-spacing": [
"error", {
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"operator-linebreak": ["error", "after"],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"semi-style": ["error", "last"],
"space-infix-ops": [
"off", {
"int32Hint": false
}
],
"space-unary-ops": [
"off", {
"words": true,
"nonwords": false,
"overrides": {
}
}]
},
"env": {
"browser": true,
"node": true
}
}