1
+ module . exports = {
2
+ "root" : true ,
3
+ "env" : {
4
+ "browser" : true ,
5
+ "es2024" : true ,
6
+ } ,
7
+ "plugins" : [
8
+ "import" ,
9
+ ] ,
10
+ "extends" : [
11
+ "eslint:recommended" ,
12
+ "plugin:import/recommended" ,
13
+ ] ,
14
+ "parserOptions" : {
15
+ "ecmaVersion" : 15 ,
16
+ "sourceType" : "module" ,
17
+ } ,
18
+ "globals" : {
19
+ "CONSTANTS" : "readonly" ,
20
+ } ,
21
+ "settings" : {
22
+ "import/resolver" : {
23
+ "alias" : [
24
+ [ "~" , "./src" ] ,
25
+ ] ,
26
+ } ,
27
+ } ,
28
+ "rules" : {
29
+ "array-callback-return" : "warn" ,
30
+ "no-constant-binary-expression" : "warn" ,
31
+ "no-constant-condition" : [ "warn" , { "checkLoops" : false } ] ,
32
+ "no-constructor-return" : "warn" ,
33
+ "no-duplicate-imports" : "warn" ,
34
+ "no-empty-pattern" : "off" ,
35
+ "no-promise-executor-return" : "warn" ,
36
+ "no-self-compare" : "warn" ,
37
+ "no-undef" : [ "error" , { "typeof" : true } ] ,
38
+ "no-unmodified-loop-condition" : "warn" ,
39
+ "no-unreachable-loop" : "warn" ,
40
+ "no-unused-private-class-members" : "warn" ,
41
+ "no-unused-vars" : [ "warn" , { "argsIgnorePattern" : "^_$" } ] ,
42
+ "require-atomic-updates" : [ "warn" , { "allowProperties" : true } ] ,
43
+
44
+ "accessor-pairs" : "warn" ,
45
+ "consistent-return" : "warn" ,
46
+ "default-case-last" : "warn" ,
47
+ "default-param-last" : "warn" ,
48
+ "dot-notation" : "warn" ,
49
+ "func-name-matching" : [ "warn" , { "considerPropertyDescriptor" : true } ] ,
50
+ "func-names" : [ "warn" , "as-needed" ] ,
51
+ "grouped-accessor-pairs" : [ "warn" , "getBeforeSet" ] ,
52
+ "max-depth" : "warn" ,
53
+ "max-nested-callbacks" : "warn" ,
54
+ "new-cap" : [ "warn" , { "newIsCap" : false } ] ,
55
+ "no-array-constructor" : "warn" ,
56
+ "no-caller" : "warn" ,
57
+ "no-confusing-arrow" : "warn" ,
58
+ "no-div-regex" : "warn" ,
59
+ "no-eval" : "warn" ,
60
+ "no-extend-native" : "warn" ,
61
+ "no-extra-bind" : "warn" ,
62
+ "no-extra-boolean-cast" : [ "warn" , { "enforceForLogicalOperands" : true } ] ,
63
+ "no-extra-label" : "warn" ,
64
+ "no-floating-decimal" : "warn" ,
65
+ "no-implicit-coercion" : "warn" ,
66
+ "no-implicit-globals" : [ "warn" , { "lexicalBindings" : true } ] ,
67
+ "no-implied-eval" : "warn" ,
68
+ "no-invalid-this" : "warn" ,
69
+ "no-iterator" : "warn" ,
70
+ "no-label-var" : "warn" ,
71
+ "no-labels" : "warn" ,
72
+ "no-lone-blocks" : "warn" ,
73
+ "no-loop-func" : "warn" ,
74
+ "no-multi-assign" : "warn" ,
75
+ "no-multi-str" : "warn" ,
76
+ "no-new" : "warn" ,
77
+ "no-new-func" : "warn" ,
78
+ "no-new-object" : "warn" ,
79
+ "no-new-wrappers" : "warn" ,
80
+ "no-octal-escape" : "warn" ,
81
+ "no-proto" : "warn" ,
82
+ "no-return-assign" : [ "warn" , "always" ] ,
83
+ "no-script-url" : "warn" ,
84
+ "no-sequences" : [ "warn" , { "allowInParentheses" : false } ] ,
85
+ "no-throw-literal" : "warn" ,
86
+ "no-undef-init" : "warn" ,
87
+ "no-unneeded-ternary" : "warn" ,
88
+ "no-unused-expressions" : "warn" ,
89
+ "no-useless-call" : "warn" ,
90
+ "no-useless-computed-key" : [ "warn" , { "enforceForClassMembers" : true } ] ,
91
+ "no-useless-concat" : "warn" ,
92
+ "no-useless-constructor" : "warn" ,
93
+ "no-useless-rename" : "warn" ,
94
+ "no-useless-return" : "warn" ,
95
+ "no-var" : "warn" ,
96
+ "no-void" : "warn" ,
97
+ "operator-assignment" : "warn" ,
98
+ "prefer-arrow-callback" : "warn" ,
99
+ "prefer-const" : [ "warn" , { "destructuring" : "all" } ] ,
100
+ "prefer-exponentiation-operator" : "warn" ,
101
+ "prefer-numeric-literals" : "warn" ,
102
+ "prefer-object-has-own" : "warn" ,
103
+ "prefer-object-spread" : "warn" ,
104
+ "prefer-promise-reject-errors" : "warn" ,
105
+ "prefer-regex-literals" : [ "warn" , { "disallowRedundantWrapping" : true } ] ,
106
+ "prefer-rest-params" : "warn" ,
107
+ "prefer-spread" : "warn" ,
108
+ "require-await" : "warn" ,
109
+ "strict" : "warn" ,
110
+ "symbol-description" : "warn" ,
111
+ "vars-on-top" : "warn" ,
112
+
113
+ "arrow-spacing" : "warn" ,
114
+ "block-spacing" : "warn" ,
115
+ "brace-style" : [ "warn" , "1tbs" , { "allowSingleLine" : true } ] ,
116
+ "comma-dangle" : [ "warn" , "always-multiline" ] ,
117
+ "comma-spacing" : "warn" ,
118
+ "comma-style" : "warn" ,
119
+ "computed-property-spacing" : "warn" ,
120
+ "dot-location" : [ "warn" , "property" ] ,
121
+ "eol-last" : [ "warn" , "never" ] ,
122
+ "func-call-spacing" : "warn" ,
123
+ "generator-star-spacing" : "warn" ,
124
+ "implicit-arrow-linebreak" : "warn" ,
125
+ "jsx-quotes" : "warn" ,
126
+ "keyword-spacing" : "warn" ,
127
+ "linebreak-style" : [ "warn" , "unix" ] ,
128
+ "lines-between-class-members" : [ "warn" , "always" , { "exceptAfterSingleLine" : true } ] ,
129
+ "new-parens" : "warn" ,
130
+ "no-extra-parens" : [ "warn" , "functions" ] ,
131
+ "no-multi-spaces" : [ "warn" , { "exceptions" : { "ObjectExpression" : true } } ] ,
132
+ "no-multiple-empty-lines" : "warn" ,
133
+ "no-trailing-spaces" : "warn" ,
134
+ "no-whitespace-before-property" : "warn" ,
135
+ "operator-linebreak" : [ "warn" , "before" ] ,
136
+ "padded-blocks" : [ "warn" , "never" ] ,
137
+ "quotes" : [ "warn" , "double" , { "allowTemplateLiterals" : true } ] ,
138
+ "rest-spread-spacing" : "warn" ,
139
+ "semi" : "warn" ,
140
+ "semi-spacing" : "warn" ,
141
+ "semi-style" : "warn" ,
142
+ "space-before-blocks" : "warn" ,
143
+ "space-before-function-paren" : [ "warn" , { "anonymous" : "never" , "named" : "never" , "asyncArrow" : "always" } ] ,
144
+ "space-unary-ops" : "warn" ,
145
+ "switch-colon-spacing" : "warn" ,
146
+ "template-curly-spacing" : "warn" ,
147
+ "template-tag-spacing" : "warn" ,
148
+ "unicode-bom" : "warn" ,
149
+ "wrap-iife" : "warn" ,
150
+ "yield-star-spacing" : "warn" ,
151
+
152
+ "import/order" : [ "warn" , {
153
+ "groups" : [
154
+ "builtin" , "external" , "internal" , "parent" , "sibling" , "index" ,
155
+ ] ,
156
+ "newlines-between" : "always" ,
157
+ "alphabetize" : { "order" : "asc" , "caseInsensitive" : true } ,
158
+ } ] ,
159
+ } ,
160
+ } ;
0 commit comments