22 "root" : true ,
33 "parser" : " @typescript-eslint/parser" ,
44 "parserOptions" : {
5- "ecmaVersion" : 6 ,
6- "sourceType" : " module"
5+ "project" : [
6+ " ./src/tsconfig.json" ,
7+ " ./tests/tsconfig.json" ,
8+ " ./web/tsconfig.json"
9+ ]
710 },
811 "plugins" : [
912 " @typescript-eslint"
1013 ],
1114 "rules" : {
15+ "arrow-spacing" : [
16+ " warn" ,
17+ {
18+ "before" : true ,
19+ "after" : true
20+ }
21+ ],
1222 "brace-style" : [
13- " error " ,
23+ " warn " ,
1424 " 1tbs" ,
1525 {
1626 "allowSingleLine" : true
1727 }
1828 ],
19- "comma-dangle" : " error " ,
20- "comma-spacing" : " error " ,
21- "comma-style" : " error " ,
29+ "comma-dangle" : " warn " ,
30+ "comma-spacing" : " warn " ,
31+ "comma-style" : " warn " ,
2232 "dot-location" : [
23- " error " ,
33+ " warn " ,
2434 " property"
2535 ],
26- "eol-last" : " error " ,
27- "eqeqeq" : " error " ,
28- "func-call-spacing" : " error " ,
36+ "eol-last" : " warn " ,
37+ "eqeqeq" : " warn " ,
38+ "func-call-spacing" : " warn " ,
2939 "indent" : [
30- " error " ,
40+ " warn " ,
3141 " tab" ,
3242 {
3343 "SwitchCase" : 1
3444 }
3545 ],
36- "key-spacing" : " error " ,
46+ "key-spacing" : " warn " ,
3747 "linebreak-style" : [
38- " error " ,
48+ " warn " ,
3949 " windows"
4050 ],
41- "new-cap" : " error" ,
42- "new-parens" : " error" ,
43- "no-console" : " warn" ,
51+ "new-cap" : " warn" ,
52+ "new-parens" : " warn" ,
53+ "no-alert" : " error" ,
54+ "no-console" : " error" ,
4455 "no-eval" : " error" ,
56+ "no-extra-boolean-cast" : " warn" ,
57+ "no-implied-eval" : " error" ,
58+ "no-irregular-whitespace" : " warn" ,
4559 "no-labels" : " error" ,
46- "no-multi-spaces" : " error" ,
60+ "no-multi-spaces" : " warn" ,
61+ "no-proto" : " error" ,
62+ "no-prototype-builtins" : " error" ,
4763 "no-redeclare" : " error" ,
64+ "no-global-assign" : " error" ,
65+ "no-return-await" : " warn" ,
4866 "no-shadow-restricted-names" : " error" ,
49- "no-throw-literal" : " error" ,
50- "no-unused-expressions" : " error" ,
51- "no-whitespace-before-property" : " error" ,
67+ "no-script-url" : " error" ,
68+ "no-sparse-arrays" : " warn" ,
69+ "no-throw-literal" : " warn" ,
70+ "no-trailing-spaces" : " warn" ,
71+ "no-unneeded-ternary" : " warn" ,
72+ "no-unsafe-negation" : " warn" ,
73+ "no-unused-expressions" : " warn" ,
74+ "no-var" : " warn" ,
75+ "no-whitespace-before-property" : " warn" ,
76+ "no-with" : " error" ,
77+ "padded-blocks" : [
78+ " warn" ,
79+ {
80+ "classes" : " never" ,
81+ "switches" : " never"
82+ }
83+ ],
5284 "quotes" : [
53- " error " ,
85+ " warn " ,
5486 " single"
5587 ],
56- "rest-spread-spacing" : " error " ,
57- "semi" : " error " ,
88+ "rest-spread-spacing" : " warn " ,
89+ "semi" : " warn " ,
5890 "sort-imports" : [
59- " error " ,
91+ " warn " ,
6092 {
6193 "allowSeparatedGroups" : true ,
6294 "ignoreDeclarationSort" : true
6395 }
6496 ],
6597 "space-before-function-paren" : [
66- " error " ,
98+ " warn " ,
6799 {
68100 "anonymous" : " always" ,
69101 "named" : " never" ,
70102 "asyncArrow" : " always"
71103 }
72104 ],
73- "space-before-blocks" : " error " ,
74- "space-infix-ops" : " error " ,
75- "spaced-comment" : " error " ,
76- "template-curly-spacing" : " error " ,
105+ "space-before-blocks" : " warn " ,
106+ "space-infix-ops" : " warn " ,
107+ "spaced-comment" : " warn " ,
108+ "template-curly-spacing" : " warn " ,
77109 "wrap-iife" : [
78- " error " ,
110+ " warn " ,
79111 " inside"
80112 ],
81- "yoda" : " error" ,
113+ "yoda" : " warn" ,
114+ "@typescript-eslint/await-thenable" : " warn" ,
115+ "@typescript-eslint/ban-ts-comment" : " error" ,
116+ "@typescript-eslint/class-literal-property-style" : [
117+ " warn" ,
118+ " fields"
119+ ],
82120 "@typescript-eslint/explicit-member-accessibility" : [
83- " error " ,
121+ " warn " ,
84122 {
85123 "overrides" : {
86124 "accessors" : " off" ,
87125 "constructors" : " off"
88126 }
89127 }
90128 ],
129+ "@typescript-eslint/method-signature-style" : [
130+ " warn" ,
131+ " property"
132+ ],
91133 "@typescript-eslint/naming-convention" : [
92- " error " ,
134+ " warn " ,
93135 {
94136 "selector" : " class" ,
95137 "format" : [
102144 " camelCase"
103145 ]
104146 }
105- ]
147+ ],
148+ "@typescript-eslint/no-misused-new" : " warn" ,
149+ "@typescript-eslint/no-this-alias" : " warn" ,
150+ "@typescript-eslint/no-unnecessary-boolean-literal-compare" : " warn"
106151 },
107152 "overrides" : [
108153 {
111156 "no-console" : " off" ,
112157 "spaced-comment" : " off"
113158 }
159+ },
160+ {
161+ "files" : " ./tests/mocks/*.ts" ,
162+ "rules" : {
163+ "no-global-assign" : " off"
164+ }
114165 }
115166 ]
116167}
0 commit comments