Skip to content

Commit c15e993

Browse files
committed
Adjusted lint settings
+ formatting
1 parent fca46e7 commit c15e993

File tree

1 file changed

+115
-104
lines changed

1 file changed

+115
-104
lines changed

.eslintrc.json

Lines changed: 115 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,117 @@
11
{
2-
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
5-
"ecmaVersion": 6,
6-
"sourceType": "module"
7-
},
8-
"plugins": [
9-
"@typescript-eslint"
10-
],
11-
"rules": {
12-
"@typescript-eslint/naming-convention": [
13-
"warn",
14-
{
15-
"selector": "function",
16-
"format": "camelCase"
17-
}
18-
],
19-
"@typescript-eslint/semi": "warn",
20-
"semi": "warn",
21-
"getter-return": "warn",
22-
"no-dupe-args" :"warn",
23-
"no-dupe-else-if": "warn",
24-
"no-dupe-keys": "warn",
25-
"no-duplicate-case": "warn",
26-
"no-empty": "warn",
27-
"accessor-pairs": "warn",
28-
"array-callback-return": "warn",
29-
"block-scoped-var": "warn",
30-
"class-methods-use-this": "warn",
31-
"complexity": "warn",
32-
"consistent-return": "warn",
33-
"curly": "warn",
34-
"default-case": "warn",
35-
"default-case-last": "warn",
36-
"default-param-last": "warn",
37-
"dot-location": "off",
38-
"dot-notation": "warn",
39-
"eqeqeq": "warn",
40-
"grouped-accessor-pairs": "warn",
41-
"guard-for-in": "off",
42-
"max-classes-per-file": ["warn", 2],
43-
"no-alert": "warn",
44-
"no-caller": "warn",
45-
"no-case-declarations": "off",
46-
"no-constructor-return": "warn",
47-
"no-div-regex": "warn",
48-
"no-else-return": "warn",
49-
"no-empty-function": "warn",
50-
"no-empty-pattern": "warn",
51-
"no-eq-null": "warn",
52-
"no-eval": "warn",
53-
"no-extend-native": "off",
54-
"no-extra-bind": "warn",
55-
"no-extra-label": "warn",
56-
"no-fallthrough": "warn",
57-
"no-floating-decimal": "warn",
58-
"no-global-assign": "warn",
59-
"no-implicit-coercion": "warn",
60-
"no-implicit-globals": "warn",
61-
"no-implied-eval": "warn",
62-
"no-invalid-this": "off",
63-
"no-iterator": "warn",
64-
"no-labels": "warn",
65-
"no-lone-blocks": "warn",
66-
"no-loop-func": "warn",
67-
"no-magic-numbers": "off",
68-
"no-multi-spaces": "warn",
69-
"no-multi-str": "warn",
70-
"no-new": "warn",
71-
"no-new-func": "warn",
72-
"no-new-wrappers": "warn",
73-
"no-octal": "warn",
74-
"no-octal-escape": "warn",
75-
"no-param-reassign": "warn",
76-
"no-proto": "warn",
77-
"no-redeclare": "off",
78-
"no-restricted-properties": "warn",
79-
"no-return-assign": "warn",
80-
"no-return-await": "warn",
81-
"no-script-url": "warn",
82-
"no-self-assign": "warn",
83-
"no-self-compare": "warn",
84-
"no-sequences": "warn",
85-
"no-throw-literal": "warn",
86-
"no-unmodified-loop-condition": "warn",
87-
"no-unused-expressions": "warn",
88-
"no-unused-labels": "warn",
89-
"no-useless-call": "warn",
90-
"no-useless-catch": "warn",
91-
"no-useless-concat": "warn",
92-
"no-useless-escape": "warn",
93-
"no-useless-return": "warn",
94-
"no-void": "warn",
95-
"no-warning-comments": "warn",
96-
"no-with": "warn",
97-
"prefer-named-capture-group": "warn",
98-
"prefer-promise-reject-errors": "off",
99-
"prefer-regex-literals": "warn",
100-
"radix": "warn",
101-
"require-await": "warn",
102-
"require-unicode-regexp": "off",
103-
"vars-on-top": "warn",
104-
"wrap-iife": "warn"
105-
}
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"commonjs": true,
6+
"es2021": true,
7+
"node": true
8+
},
9+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"ecmaVersion": 12
13+
},
14+
"plugins": ["@typescript-eslint"],
15+
"rules": {
16+
"@typescript-eslint/naming-convention": [
17+
"warn",
18+
{
19+
"selector": "function",
20+
"format": ["camelCase"]
21+
}
22+
],
23+
"@typescript-eslint/no-this-alias": [
24+
"error",
25+
{
26+
"allowedNames": ["that"]
27+
}
28+
],
29+
"@typescript-eslint/semi": "warn",
30+
"semi": "off",
31+
"getter-return": "warn",
32+
"no-dupe-args": "warn",
33+
"no-dupe-else-if": "warn",
34+
"no-dupe-keys": "warn",
35+
"no-duplicate-case": "warn",
36+
"no-empty": "warn",
37+
"accessor-pairs": "warn",
38+
"array-callback-return": "warn",
39+
"block-scoped-var": "warn",
40+
"class-methods-use-this": "warn",
41+
"complexity": "warn",
42+
"consistent-return": "warn",
43+
"curly": "warn",
44+
"default-case": "warn",
45+
"default-case-last": "warn",
46+
"default-param-last": "warn",
47+
"dot-location": "off",
48+
"dot-notation": "warn",
49+
"eqeqeq": "warn",
50+
"grouped-accessor-pairs": "warn",
51+
"guard-for-in": "off",
52+
"max-classes-per-file": ["warn", 2],
53+
"no-alert": "warn",
54+
"no-caller": "warn",
55+
"no-case-declarations": "off",
56+
"no-constructor-return": "warn",
57+
"no-div-regex": "warn",
58+
"no-else-return": "warn",
59+
"no-empty-function": "warn",
60+
"no-empty-pattern": "warn",
61+
"no-eq-null": "warn",
62+
"no-eval": "warn",
63+
"no-extend-native": "off",
64+
"no-extra-bind": "warn",
65+
"no-extra-label": "warn",
66+
"no-fallthrough": "warn",
67+
"no-floating-decimal": "warn",
68+
"no-global-assign": "warn",
69+
"no-implicit-coercion": "warn",
70+
"no-implicit-globals": "warn",
71+
"no-implied-eval": "warn",
72+
"no-invalid-this": "off",
73+
"no-iterator": "warn",
74+
"no-labels": "warn",
75+
"no-lone-blocks": "warn",
76+
"no-loop-func": "warn",
77+
"no-magic-numbers": "off",
78+
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
79+
"no-multi-spaces": "warn",
80+
"no-multi-str": "warn",
81+
"no-new": "warn",
82+
"no-new-func": "warn",
83+
"no-new-wrappers": "warn",
84+
"no-octal": "warn",
85+
"no-octal-escape": "warn",
86+
"no-param-reassign": "warn",
87+
"no-proto": "warn",
88+
"no-redeclare": "off",
89+
"no-restricted-properties": "warn",
90+
"no-return-assign": "warn",
91+
"no-return-await": "warn",
92+
"no-script-url": "warn",
93+
"no-self-assign": "warn",
94+
"no-self-compare": "warn",
95+
"no-sequences": "warn",
96+
"no-throw-literal": "warn",
97+
"no-unmodified-loop-condition": "warn",
98+
"no-unused-expressions": "warn",
99+
"no-unused-labels": "warn",
100+
"no-useless-call": "warn",
101+
"no-useless-catch": "warn",
102+
"no-useless-concat": "warn",
103+
"no-useless-escape": "warn",
104+
"no-useless-return": "warn",
105+
"no-void": "warn",
106+
"no-warning-comments": "warn",
107+
"no-with": "warn",
108+
"prefer-named-capture-group": "warn",
109+
"prefer-promise-reject-errors": "off",
110+
"prefer-regex-literals": "warn",
111+
"radix": "warn",
112+
"require-await": "warn",
113+
"require-unicode-regexp": "off",
114+
"vars-on-top": "warn",
115+
"wrap-iife": "warn"
116+
}
106117
}

0 commit comments

Comments
 (0)