-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
executable file
·130 lines (130 loc) · 3 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"parser": "@typescript-eslint/parser",
"parserOptions": {},
"plugins": [
"import",
"header",
"@typescript-eslint"
],
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".json", ".d.ts"]
}
}
},
"rules": {
"prefer-const": 2,
"no-var": 2,
"object-shorthand": 2,
"quote-props": [
2,
"as-needed"
],
"array-callback-return": 2,
"prefer-destructuring": 2,
"prefer-template": 2,
"template-curly-spacing": 2,
"no-eval": 2,
"no-useless-escape": 2,
"wrap-iife": 2,
"no-loop-func": 2,
"prefer-rest-params": 2,
"no-new-func": 2,
"space-before-function-paren": 0,
"space-before-blocks": 2,
"no-param-reassign": 2,
"prefer-spread": 2,
"prefer-arrow-callback": 2,
"arrow-spacing": 2,
"arrow-parens": 2,
"arrow-body-style": 2,
"no-confusing-arrow": 2,
"no-useless-constructor": 2,
"no-dupe-class-members": 2,
"no-duplicate-imports": 2,
"import/no-mutable-exports": 2,
"import/prefer-default-export": 1,
"import/first": 2,
"no-iterator": 2,
"generator-star-spacing": 2,
"dot-notation": 2,
"no-undef": 2,
"one-var": [
2,
"never"
],
"no-multi-assign": 2,
"eqeqeq": 2,
"no-case-declarations": 2,
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
"no-mixed-operators": 2,
"nonblock-statement-body-position": 2,
"brace-style": 2,
"no-else-return": 2,
"spaced-comment": 2,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"keyword-spacing": 2,
"space-infix-ops": 2,
"eol-last": 2,
"newline-per-chained-call": 2,
"padded-blocks": [
2,
"never"
],
"space-in-parens": 2,
"array-bracket-spacing": 2,
"object-curly-spacing": 2,
"comma-style": 2,
"comma-dangle": 2,
"radix": 2,
"no-new-wrappers": 2,
"id-length": 2,
"camelcase": 2,
"new-cap": 2,
"no-underscore-dangle": 2,
"no-restricted-globals": 2,
"semi": [
"error",
"always"
],
"semi-spacing": 2,
"no-unexpected-multiline": 2,
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"no-trailing-spaces": 2,
"no-console": "off",
"import/no-unresolved": "error",
"curly": [
"error",
"all"
],
"header/header": [
2,
"block",
"\nCopyright: Ambrosus Inc.\nEmail: tech@ambrosus.io\n\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nThis Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.\n"
]
}
}