-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc
36 lines (34 loc) · 861 Bytes
/
.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
{
"parser": "babel-eslint",
"env": {
// in CommonJS
"node": true
},
"extends": [
"defaults/configurations/eslint",
],
"rules": {
// possible
"comma-dangle": ["error", "only-multiline"],
// best practices
curly: "error",
no-eval: "error",
radix: "error",
no-redeclare: "error",
no-return-assign: "error",
no-unmodified-loop-condition: "error",
no-unused-expressions: ["error", {"allowShortCircuit": true}],
no-unused-vars: ["error", { "varsIgnorePattern": "_" }],
no-useless-escape: "error",
eqeqeq: "error",
no-multi-spaces: "error",
block-scoped-var: "error",
no-use-before-define: "error",
// styles
"quotes": [2, "single"],
"eol-last": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"no-console": ["error", {allow: ["log"]}]
}
}