This repository has been archived by the owner on Sep 19, 2021. It is now read-only.
/
.eslintrc.json
60 lines (60 loc) · 1.56 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
{
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:node/recommended"
],
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"parserOptions": {"ecmaVersion": 2018},
"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": 150}],
"implicit-arrow-linebreak": ["error", "beside"],
"no-control-regex": "off",
"arrow-parens": ["error", "always"],
"node/no-unpublished-require": "off"
},
"settings": {
"import/resolver": "webpack"
},
"overrides": [
{
"files": [ "src/**/*.js", "test/**/*.js" ]
}
]
}