-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
59 lines (59 loc) · 1.62 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
53
54
55
56
57
58
59
{
"plugins": ["prettier"],
"extends": ["eslint:recommended", "prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"no-throw-literal": "off",
"operator-assignment": "off",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used"
}
],
"comma-dangle": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": "off",
"camelcase": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-restricted-properties": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-loop-func": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"default-case": "error",
"prefer-destructuring": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
//"max-len": ["error", { "code": 100, "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true }],
"implicit-arrow-linebreak": ["error", "beside"],
"no-control-regex": "off",
"arrow-parens": ["error", "always"],
"no-func-assign": "off"
},
"settings": {
"import/resolver": "webpack"
}
}