-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy path.eslintrc
More file actions
30 lines (30 loc) · 785 Bytes
/
.eslintrc
File metadata and controls
30 lines (30 loc) · 785 Bytes
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
{
"extends": "eslint:recommended",
"env": {
"es6": true
},
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"prettier/prettier": [ "error", { "printWidth": 100, "singleQuote": true } ],
"linebreak-style": [ "error", "unix" ],
"no-mixed-spaces-and-tabs": [ "error", "smart-tabs" ],
"no-class-assign": "error",
"no-cond-assign": "off",
"no-const-assign": "error",
"no-constant-condition": [ "error", { "checkLoops": false } ],
"no-control-regex": "off",
"no-this-before-super": "error",
"no-var": "error",
"object-shorthand": [ "error", "always" ],
"one-var": [ "error", { "initialized": "never" } ],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"no-useless-escape": 0
}
}