11{
2- "env" : {
3- "commonjs" : true ,
4- "es2021" : true ,
5- "browser" : true ,
6- "node" : true
7- },
8- "parser" : " @typescript-eslint/parser" ,
9- "ignorePatterns" : [
10- " dist/"
11- ],
12- "extends" : [
13- " eslint:recommended" ,
14- " standard-with-typescript" ,
15- " plugin:@typescript-eslint/recommended" ,
16- " plugin:@typescript-eslint/recommended-requiring-type-checking"
17- ],
18- "plugins" : [
19- " unused-imports"
20- ],
21- "parserOptions" : {
22- "ecmaVersion" : " latest" ,
23- "tsconfigRootDir" : " ." ,
24- "sourceType" : " module" ,
25- "project" : " ./tsconfig.json"
26- },
27- "overrides" : [
2+ "env" : {
3+ "commonjs" : true ,
4+ "es2021" : true ,
5+ "browser" : true ,
6+ "node" : true
7+ },
8+ "parser" : " @typescript-eslint/parser" ,
9+ "ignorePatterns" : [" dist/" ],
10+ "extends" : [
11+ " eslint:recommended" ,
12+ " standard-with-typescript" ,
13+ " plugin:@typescript-eslint/recommended" ,
14+ " plugin:@typescript-eslint/recommended-requiring-type-checking" ,
15+ " prettier"
16+ ],
17+ "plugins" : [" unused-imports" ],
18+ "parserOptions" : {
19+ "ecmaVersion" : " latest" ,
20+ "tsconfigRootDir" : " ." ,
21+ "sourceType" : " module" ,
22+ "project" : " ./tsconfig.json"
23+ },
24+ "overrides" : [
25+ {
26+ "files" : [" src/examples/**/*" ],
27+ "rules" : {
28+ "no-console" : " off"
29+ }
30+ }
31+ ],
32+ "rules" : {
33+ "space-unary-ops" : " off" , // Disables the rule that enforces consistent spacing around unary operators like '!' or '++'. Example: allows both '!foo' and '! foo'
34+ "@typescript-eslint/no-this-alias" : " warn" ,
35+ "@typescript-eslint/no-unsafe-return" : " off" ,
36+ "@typescript-eslint/naming-convention" : [
37+ " error" ,
38+ {
39+ "selector" : " variable" ,
40+ "modifiers" : [" destructured" ],
41+ "format" : null
42+ }
43+ ],
44+ "@typescript-eslint/no-non-null-assertion" : " off" ,
45+ "@typescript-eslint/unbound-method" : " off" ,
46+ "@typescript-eslint/no-explicit-any" : " off" ,
47+ "@typescript-eslint/restrict-template-expressions" : " off" ,
48+ "@typescript-eslint/no-unsafe-call" : " off" ,
49+ "@typescript-eslint/no-unsafe-assignment" : " off" ,
50+ "@typescript-eslint/no-unsafe-member-access" : " off" ,
51+ "no-underscore-dangle" : " off" ,
52+ "@typescript-eslint/no-unused-vars" : " warn" ,
53+ "unused-imports/no-unused-imports" : " error" ,
54+ "prefer-promise-reject-errors" : [
55+ " error" ,
56+ {
57+ "allowEmptyReject" : true
58+ }
59+ ],
60+ "no-console" : " error" ,
61+ "max-len" : [
62+ " error" ,
63+ {
64+ "code" : 250
65+ }
66+ ],
67+ "@typescript-eslint/no-misused-promises" : [
68+ " error" ,
2869 {
29- "files" : [
30- " src/examples/**/*"
31- ],
32- "rules" : {
33- "no-console" : " off"
34- }
70+ "checksVoidReturn" : false
3571 }
36- ],
37- "rules" : {
38- "object-curly-newline" : [
39- " error" ,
40- {
41- "ObjectExpression" : {
42- "multiline" : true ,
43- "minProperties" : 8
44- },
45- "ObjectPattern" : {
46- "multiline" : true ,
47- "minProperties" : 8
48- },
49- "ImportDeclaration" : {
50- "multiline" : true ,
51- "minProperties" : 8
52- },
53- "ExportDeclaration" : {
54- "multiline" : true ,
55- "minProperties" : 8
56- }
57- }
58- ],
59- "no-restricted-imports" : [
60- " error" ,
61- {
62- "patterns" : [
63- " .*"
64- ]
65- }
66- ],
67- "@typescript-eslint/no-this-alias" : " warn" ,
68- "@typescript-eslint/no-unsafe-return" : " off" ,
69- "@typescript-eslint/naming-convention" : [
70- " error" ,
71- {
72- "selector" : " variable" ,
73- "modifiers" : [
74- " destructured"
75- ],
76- "format" : null
77- }
78- ],
79- "space-unary-ops" : 2 ,
80- "@typescript-eslint/no-non-null-assertion" : " off" ,
81- "@typescript-eslint/unbound-method" : " off" ,
82- "@typescript-eslint/no-explicit-any" : " off" ,
83- "@typescript-eslint/restrict-template-expressions" : " off" ,
84- "@typescript-eslint/no-unsafe-call" : " off" ,
85- "@typescript-eslint/no-unsafe-assignment" : " off" ,
86- "@typescript-eslint/no-unsafe-member-access" : " off" ,
87- "no-underscore-dangle" : " off" ,
88- "@typescript-eslint/no-unused-vars" : " warn" ,
89- "unused-imports/no-unused-imports" : " error" ,
90- "prefer-promise-reject-errors" : [
91- " error" ,
92- {
93- "allowEmptyReject" : true
94- }
95- ],
96- "no-console" : " error" ,
97- "max-len" : [
98- " error" ,
99- {
100- "code" : 250
101- }
102- ],
103- "@typescript-eslint/no-misused-promises" : [
104- " error" ,
105- {
106- "checksVoidReturn" : false
107- }
108- ]
109- }
110- }
72+ ]
73+ }
74+ }
0 commit comments