-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
executable file
·79 lines (79 loc) · 2.61 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"prettier"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"impliedStrict": true,
"classes": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"prettier",
"import",
"jsdoc"
],
"rules": {
"array-callback-return": "error",
"no-await-in-loop": "error",
"object-curly-newline": ["error", { "multiline": true, "minProperties": 3 }],
"brace-style": ["error", "1tbs", {"allowSingleLine": false}],
"no-return-await": "error",
"quote-props": ["error", "consistent"],
"require-await": "error",
"no-async-promise-executor": "error",
"no-throw-literal": "warn",
"no-nested-ternary": "error",
"no-duplicate-imports": ["error", {"includeExports": false}],
"import/order": ["error", {"groups": [ "builtin", "external", "internal", "parent", "sibling", "index" ]}],
"import/first": "off",
"import/default": "off",
"import/namespace": "off",
"indent": ["error", 2],
"no-undef": "error",
"no-unused-vars": "error",
"no-debugger": "warn",
"curly": "error",
"semi": ["error", "always", {"omitLastInOneLineBlock": true}],
"semi-style": ["error", "last"],
"no-console": "off",
"no-prototype-builtins": "off",
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
"comma-dangle": ["error", "always-multiline"],
"keyword-spacing": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"arrow-body-style": ["error", "as-needed"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"no-return-assign": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": ["function", "if", "for", "while", "switch", "try" ] },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": ["block", "block-like", "multiline-expression"] },
{ "blankLine": "always", "prev": ["block", "block-like", "multiline-expression"] , "next":["const", "let", "var"]}
],
"padded-blocks": ["error", "never"],
"no-unused-expressions": "error",
"func-names":"off",
"no-underscore-dangle": "off",
"consistent-return": "off",
"radix": "off",
"guard-for-in": "off",
"no-mixed-operators": "off",
"eqeqeq": "off",
"jsdoc/require-returns-type": "warn",
"jsdoc/valid-types": "warn"
},
"settings": {}
}