@pawover/eslint-rules 0.0.0-alpha.2 → 0.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preset.js ADDED
@@ -0,0 +1,86 @@
1
+ export default {
2
+ indent: 2,
3
+ tsMemberOrder: [
4
+ "signature",
5
+ "call-signature",
6
+ "public-static-get",
7
+ "public-static-set",
8
+ "protected-static-get",
9
+ "protected-static-set",
10
+ "private-static-get",
11
+ "private-static-set",
12
+ "#private-static-get",
13
+ "#private-static-set",
14
+ "static-get",
15
+ "static-set",
16
+ "public-static-field",
17
+ "protected-static-field",
18
+ "private-static-field",
19
+ "#private-static-field",
20
+ "static-field",
21
+ "public-static-method",
22
+ "protected-static-method",
23
+ "private-static-method",
24
+ "#private-static-method",
25
+ "static-method",
26
+ "static-initialization",
27
+ "public-constructor",
28
+ "protected-constructor",
29
+ "private-constructor",
30
+ "constructor",
31
+ "public-decorated-get",
32
+ "public-decorated-set",
33
+ "protected-decorated-get",
34
+ "protected-decorated-set",
35
+ "private-decorated-get",
36
+ "private-decorated-set",
37
+ "public-instance-get",
38
+ "public-instance-set",
39
+ "protected-instance-get",
40
+ "protected-instance-set",
41
+ "private-instance-get",
42
+ "private-instance-set",
43
+ "#private-instance-get",
44
+ "#private-instance-set",
45
+ "public-abstract-get",
46
+ "public-abstract-set",
47
+ "protected-abstract-get",
48
+ "protected-abstract-set",
49
+ "public-get",
50
+ "public-set",
51
+ "protected-get",
52
+ "protected-set",
53
+ "private-get",
54
+ "private-set",
55
+ "#private-get",
56
+ "#private-set",
57
+ "instance-get",
58
+ "instance-set",
59
+ "abstract-get",
60
+ "abstract-set",
61
+ "decorated-get",
62
+ "decorated-set",
63
+ "get",
64
+ "set",
65
+ "public-instance-field",
66
+ "protected-instance-field",
67
+ "private-instance-field",
68
+ "#private-instance-field",
69
+ "instance-field",
70
+ "public-field",
71
+ "protected-field",
72
+ "private-field",
73
+ "#private-field",
74
+ "field",
75
+ "public-instance-method",
76
+ "protected-instance-method",
77
+ "private-instance-method",
78
+ "#private-instance-method",
79
+ "instance-method",
80
+ "public-method",
81
+ "protected-method",
82
+ "private-method",
83
+ "#private-method",
84
+ "method",
85
+ ],
86
+ };
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ "antfu/consistent-chaining": number;
3
+ "antfu/consistent-list-newline": number;
4
+ "antfu/curly": number;
5
+ "antfu/if-newline": number;
6
+ "antfu/import-dedupe": number;
7
+ "antfu/indent-unindent": number;
8
+ "antfu/no-import-dist": number;
9
+ "antfu/no-import-node-modules-by-path": number;
10
+ "antfu/no-top-level-await": number;
11
+ "antfu/no-ts-export-equal": number;
12
+ "antfu/top-level-function": number;
13
+ };
14
+ export default _default;
@@ -0,0 +1,232 @@
1
+ declare const _default: {
2
+ "array-callback-return": number;
3
+ "constructor-super": number;
4
+ "for-direction": number;
5
+ "getter-return": number;
6
+ "no-async-promise-executor": number;
7
+ "no-await-in-loop": number;
8
+ "no-class-assign": number;
9
+ "no-compare-neg-zero": number;
10
+ "no-cond-assign": number;
11
+ "no-const-assign": number;
12
+ "no-constant-binary-expression": number;
13
+ "no-constant-condition": number;
14
+ "no-constructor-return": number;
15
+ "no-control-regex": number;
16
+ "no-debugger": number;
17
+ "no-dupe-args": number;
18
+ "no-dupe-class-members": number;
19
+ "no-dupe-else-if": number;
20
+ "no-dupe-keys": number;
21
+ "no-duplicate-case": number;
22
+ "no-duplicate-imports": number;
23
+ "no-empty-character-class": number;
24
+ "no-empty-pattern": number;
25
+ "no-ex-assign": number;
26
+ "no-fallthrough": number;
27
+ "no-func-assign": number;
28
+ "no-import-assign": number;
29
+ "no-inner-declarations": number;
30
+ "no-invalid-regexp": number;
31
+ "no-irregular-whitespace": (number | {
32
+ skipStrings: boolean;
33
+ skipComments: boolean;
34
+ skipRegExps: boolean;
35
+ skipTemplates: boolean;
36
+ skipJSXText: boolean;
37
+ })[];
38
+ "no-loss-of-precision": number;
39
+ "no-misleading-character-class": number;
40
+ "no-new-native-nonconstructor": number;
41
+ "no-obj-calls": number;
42
+ "no-promise-executor-return": number;
43
+ "no-prototype-builtins": number;
44
+ "no-self-assign": number;
45
+ "no-self-compare": number;
46
+ "no-setter-return": number;
47
+ "no-sparse-arrays": number;
48
+ "no-template-curly-in-string": number;
49
+ "no-this-before-super": number;
50
+ "no-undef": number;
51
+ "no-unexpected-multiline": number;
52
+ "no-unmodified-loop-condition": number;
53
+ "no-unreachable": number;
54
+ "no-unreachable-loop": number;
55
+ "no-unsafe-finally": number;
56
+ "no-unsafe-negation": number;
57
+ "no-unsafe-optional-chaining": number;
58
+ "no-unused-private-class-members": number;
59
+ "no-unused-vars": (number | {
60
+ vars: string;
61
+ args: string;
62
+ caughtErrors: string;
63
+ varsIgnorePattern: string;
64
+ destructuredArrayIgnorePattern: string;
65
+ })[];
66
+ "no-use-before-define": (number | {
67
+ functions: boolean;
68
+ classes: boolean;
69
+ variables: boolean;
70
+ allowNamedExports: boolean;
71
+ })[];
72
+ "no-useless-assignment": number;
73
+ "no-useless-backreference": number;
74
+ "require-atomic-updates": (number | {
75
+ allowProperties: boolean;
76
+ })[];
77
+ "use-isnan": number;
78
+ "valid-typeof": number;
79
+ "accessor-pairs": (number | {
80
+ setWithoutGet: boolean;
81
+ getWithoutSet: boolean;
82
+ })[];
83
+ "arrow-body-style": number;
84
+ "block-scoped-var": number;
85
+ camelcase: number;
86
+ "capitalized-comments": number;
87
+ "class-methods-use-this": number;
88
+ complexity: number;
89
+ "consistent-return": number;
90
+ "consistent-this": number;
91
+ curly: number;
92
+ "default-case": number;
93
+ "default-case-last": number;
94
+ "default-param-last": number;
95
+ "dot-notation": number;
96
+ eqeqeq: number;
97
+ "func-name-matching": number;
98
+ "func-names": number;
99
+ "func-style": number;
100
+ "grouped-accessor-pairs": (string | number)[];
101
+ "guard-for-in": number;
102
+ "id-denylist": number;
103
+ "id-length": number;
104
+ "id-match": number;
105
+ "init-declarations": number;
106
+ "logical-assignment-operators": number;
107
+ "max-classes-per-file": number;
108
+ "max-depth": number[];
109
+ "max-lines": number;
110
+ "max-lines-per-function": number;
111
+ "max-nested-callbacks": number;
112
+ "max-params": number;
113
+ "max-statements": number;
114
+ "new-cap": (number | {
115
+ capIsNew: boolean;
116
+ })[];
117
+ "no-alert": number;
118
+ "no-array-constructor": number;
119
+ "no-bitwise": number;
120
+ "no-caller": number;
121
+ "no-case-declarations": number;
122
+ "no-console": number;
123
+ "no-continue": number;
124
+ "no-delete-var": number;
125
+ "no-div-regex": number;
126
+ "no-else-return": number;
127
+ "no-empty": (number | {
128
+ allowEmptyCatch: boolean;
129
+ })[];
130
+ "no-empty-function": number;
131
+ "no-empty-static-block": number;
132
+ "no-eq-null": number;
133
+ "no-eval": number;
134
+ "no-extend-native": number;
135
+ "no-extra-bind": number;
136
+ "no-extra-boolean-cast": number;
137
+ "no-extra-label": number;
138
+ "no-global-assign": number;
139
+ "no-implicit-coercion": (number | {
140
+ allow: string[];
141
+ })[];
142
+ "no-implicit-globals": number;
143
+ "no-implied-eval": number;
144
+ "no-inline-comments": number;
145
+ "no-invalid-this": number;
146
+ "no-iterator": number;
147
+ "no-label-var": number;
148
+ "no-labels": number;
149
+ "no-lone-blocks": number;
150
+ "no-lonely-if": number;
151
+ "no-loop-func": number;
152
+ "no-magic-numbers": number;
153
+ "no-multi-assign": number;
154
+ "no-multi-str": number;
155
+ "no-negated-condition": number;
156
+ "no-nested-ternary": number;
157
+ "no-new": number;
158
+ "no-new-func": number;
159
+ "no-new-wrappers": number;
160
+ "no-nonoctal-decimal-escape": number;
161
+ "no-object-constructor": number;
162
+ "no-octal": number;
163
+ "no-octal-escape": number;
164
+ "no-param-reassign": number;
165
+ "no-plusplus": number;
166
+ "no-proto": number;
167
+ "no-redeclare": number;
168
+ "no-regex-spaces": number;
169
+ "no-restricted-exports": number;
170
+ "no-restricted-globals": number;
171
+ "no-restricted-imports": number;
172
+ "no-restricted-properties": number;
173
+ "no-restricted-syntax": number;
174
+ "no-return-assign": (string | number)[];
175
+ "no-script-url": number;
176
+ "no-sequences": number;
177
+ "no-shadow": number;
178
+ "no-shadow-restricted-names": number;
179
+ "no-ternary": number;
180
+ "no-throw-literal": number;
181
+ "no-undef-init": number;
182
+ "no-undefined": number;
183
+ "no-underscore-dangle": number;
184
+ "no-unneeded-ternary": number;
185
+ "no-unused-expressions": (number | {
186
+ ignoreDirectives: boolean;
187
+ allowShortCircuit: boolean;
188
+ })[];
189
+ "no-unused-labels": number;
190
+ "no-useless-call": number;
191
+ "no-useless-catch": number;
192
+ "no-useless-computed-key": number;
193
+ "no-useless-concat": number;
194
+ "no-useless-constructor": number;
195
+ "no-useless-escape": number;
196
+ "no-useless-rename": number;
197
+ "no-useless-return": number;
198
+ "no-var": number;
199
+ "no-void": number;
200
+ "no-warning-comments": number;
201
+ "no-with": number;
202
+ "object-shorthand": number;
203
+ "one-var": (string | number)[];
204
+ "operator-assignment": number;
205
+ "prefer-arrow-callback": number;
206
+ "prefer-const": number;
207
+ "prefer-destructuring": number;
208
+ "prefer-exponentiation-operator": number;
209
+ "prefer-named-capture-group": number;
210
+ "prefer-numeric-literals": number;
211
+ "prefer-object-has-own": number;
212
+ "prefer-object-spread": number;
213
+ "prefer-promise-reject-errors": number;
214
+ "prefer-regex-literals": number;
215
+ "prefer-rest-params": number;
216
+ "prefer-spread": number;
217
+ "prefer-template": number;
218
+ radix: number;
219
+ "require-await": number;
220
+ "require-unicode-regexp": number;
221
+ "require-yield": number;
222
+ "sort-imports": number;
223
+ "sort-keys": number;
224
+ "sort-vars": number;
225
+ strict: number;
226
+ "symbol-description": number;
227
+ "vars-on-top": number;
228
+ yoda: (string | number | {
229
+ onlyEquality: boolean;
230
+ })[];
231
+ };
232
+ export default _default;
@@ -0,0 +1,92 @@
1
+ declare const _default: {
2
+ "react/jsx-key-before-spread": number;
3
+ "react/jsx-no-comment-textnodes": number;
4
+ "react/jsx-no-duplicate-props": number;
5
+ "react/jsx-no-iife": number;
6
+ "react/jsx-no-undef": number;
7
+ "react/jsx-shorthand-boolean": number;
8
+ "react/jsx-shorthand-fragment": number;
9
+ "react/jsx-uses-react": number;
10
+ "react/jsx-uses-vars": number;
11
+ "react/no-access-state-in-setstate": number;
12
+ "react/no-array-index-key": number;
13
+ "react/no-children-count": number;
14
+ "react/no-children-for-each": number;
15
+ "react/no-children-map": number;
16
+ "react/no-children-only": number;
17
+ "react/no-children-prop": number;
18
+ "react/no-children-to-array": number;
19
+ "react/no-class-component": number;
20
+ "react/no-clone-element": number;
21
+ "react/no-component-will-mount": number;
22
+ "react/no-component-will-receive-props": number;
23
+ "react/no-component-will-update": number;
24
+ "react/no-context-provider": number;
25
+ "react/no-create-ref": number;
26
+ "react/no-default-props": number;
27
+ "react/no-direct-mutation-state": number;
28
+ "react/no-duplicate-key": number;
29
+ "react/no-forward-ref": number;
30
+ "react/no-implicit-key": number;
31
+ "react/no-leaked-conditional-rendering": number;
32
+ "react/no-missing-component-display-name": number;
33
+ "react/no-missing-context-display-name": number;
34
+ "react/no-missing-key": number;
35
+ "react/no-misused-capture-owner-stack": number;
36
+ "react/no-nested-component-definitions": number;
37
+ "react/no-nested-lazy-component-declarations": number;
38
+ "react/no-prop-types": number;
39
+ "react/no-redundant-should-component-update": number;
40
+ "react/no-set-state-in-component-did-mount": number;
41
+ "react/no-set-state-in-component-did-update": number;
42
+ "react/no-set-state-in-component-will-update": number;
43
+ "react/no-string-refs": number;
44
+ "react/no-unnecessary-key": number;
45
+ "react/no-unnecessary-use-callback": number;
46
+ "react/no-unnecessary-use-memo": number;
47
+ "react/no-unnecessary-use-prefix": number;
48
+ "react/no-unsafe-component-will-mount": number;
49
+ "react/no-unsafe-component-will-receive-props": number;
50
+ "react/no-unsafe-component-will-update": number;
51
+ "react/no-unstable-context-value": number;
52
+ "react/no-unstable-default-props": number;
53
+ "react/no-unused-class-component-members": number;
54
+ "react/no-unused-props": number;
55
+ "react/no-unused-state": number;
56
+ "react/no-use-context": number;
57
+ "react/no-useless-forward-ref": number;
58
+ "react/no-useless-fragment": number;
59
+ "react/prefer-destructuring-assignment": number;
60
+ "react/prefer-namespace-import": number;
61
+ "react/prefer-read-only-props": number;
62
+ "react/prefer-use-state-lazy-initialization": number;
63
+ "react-dom/no-dangerously-set-innerhtml": number;
64
+ "react-dom/no-dangerously-set-innerhtml-with-children": number;
65
+ "react-dom/no-find-dom-node": number;
66
+ "react-dom/no-flush-sync": number;
67
+ "react-dom/no-hydrate": number;
68
+ "react-dom/no-missing-button-type": number;
69
+ "react-dom/no-missing-iframe-sandbox": number;
70
+ "react-dom/no-namespace": number;
71
+ "react-dom/no-render": number;
72
+ "react-dom/no-render-return-value": number;
73
+ "react-dom/no-script-url": number;
74
+ "react-dom/no-string-style-prop": number;
75
+ "react-dom/no-unknown-property": number;
76
+ "react-dom/no-unsafe-iframe-sandbox": number;
77
+ "react-dom/no-unsafe-target-blank": number;
78
+ "react-dom/no-use-form-state": number;
79
+ "react-dom/no-void-elements-with-children": number;
80
+ "react-dom/prefer-namespace-import": number;
81
+ "react-web-api/no-leaked-event-listener": number;
82
+ "react-web-api/no-leaked-interval": number;
83
+ "react-web-api/no-leaked-resize-observer": number;
84
+ "react-web-api/no-leaked-timeout": number;
85
+ "react-hooks-extra/no-direct-set-state-in-use-effect": number;
86
+ "react-naming-convention/component-name": number;
87
+ "react-naming-convention/context-name": number;
88
+ "react-naming-convention/filename": (string | number)[];
89
+ "react-naming-convention/filename-extension": number;
90
+ "react-naming-convention/use-state": number;
91
+ };
92
+ export default _default;
@@ -0,0 +1,131 @@
1
+ declare const _default: {
2
+ "stylistic/array-bracket-newline": (string | number)[];
3
+ "stylistic/array-bracket-spacing": number;
4
+ "stylistic/array-element-newline": (string | number)[];
5
+ "stylistic/arrow-parens": number;
6
+ "stylistic/arrow-spacing": number;
7
+ "stylistic/block-spacing": number;
8
+ "stylistic/brace-style": number;
9
+ "stylistic/comma-dangle": (string | number)[];
10
+ "stylistic/comma-spacing": number;
11
+ "stylistic/comma-style": number;
12
+ "stylistic/computed-property-spacing": number;
13
+ "stylistic/curly-newline": number;
14
+ "stylistic/dot-location": number;
15
+ "stylistic/eol-last": number;
16
+ "stylistic/function-call-argument-newline": (string | number)[];
17
+ "stylistic/function-call-spacing": number;
18
+ "stylistic/function-paren-newline": (string | number)[];
19
+ "stylistic/generator-star-spacing": number;
20
+ "stylistic/implicit-arrow-linebreak": number;
21
+ "stylistic/indent": number[];
22
+ "stylistic/indent-binary-ops": number[];
23
+ "stylistic/jsx-child-element-spacing": number;
24
+ "stylistic/jsx-closing-bracket-location": number;
25
+ "stylistic/jsx-closing-tag-location": number;
26
+ "stylistic/jsx-curly-brace-presence": number;
27
+ "stylistic/jsx-curly-newline": number;
28
+ "stylistic/jsx-curly-spacing": number;
29
+ "stylistic/jsx-equals-spacing": number;
30
+ "stylistic/jsx-first-prop-new-line": number;
31
+ "stylistic/jsx-function-call-newline": number;
32
+ "stylistic/jsx-indent-props": number[];
33
+ "stylistic/jsx-max-props-per-line": number;
34
+ "stylistic/jsx-newline": number;
35
+ "stylistic/jsx-one-expression-per-line": (number | {
36
+ allow: string;
37
+ })[];
38
+ "stylistic/jsx-pascal-case": (number | {
39
+ allowNamespace: boolean;
40
+ })[];
41
+ "stylistic/jsx-quotes": number;
42
+ "stylistic/jsx-self-closing-comp": number;
43
+ "stylistic/jsx-sort-props": number;
44
+ "stylistic/jsx-tag-spacing": (number | {
45
+ beforeClosing: string;
46
+ })[];
47
+ "stylistic/jsx-wrap-multilines": (number | {
48
+ declaration: string;
49
+ assignment: string;
50
+ return: string;
51
+ arrow: string;
52
+ condition: string;
53
+ logical: string;
54
+ prop: string;
55
+ propertyValue: string;
56
+ })[];
57
+ "stylistic/key-spacing": number;
58
+ "stylistic/keyword-spacing": number;
59
+ "stylistic/line-comment-position": number;
60
+ "stylistic/linebreak-style": number;
61
+ "stylistic/lines-around-comment": number;
62
+ "stylistic/lines-between-class-members": number;
63
+ "stylistic/max-len": number;
64
+ "stylistic/max-statements-per-line": number;
65
+ "stylistic/member-delimiter-style": number;
66
+ "stylistic/multiline-comment-style": number;
67
+ "stylistic/multiline-ternary": (string | number)[];
68
+ "stylistic/new-parens": number;
69
+ "stylistic/newline-per-chained-call": number;
70
+ "stylistic/no-confusing-arrow": number;
71
+ "stylistic/no-extra-parens": number;
72
+ "stylistic/no-extra-semi": number;
73
+ "stylistic/no-floating-decimal": number;
74
+ "stylistic/no-mixed-operators": number;
75
+ "stylistic/no-mixed-spaces-and-tabs": number;
76
+ "stylistic/no-multi-spaces": number;
77
+ "stylistic/no-multiple-empty-lines": (number | {
78
+ max: number;
79
+ maxEOF: number;
80
+ maxBOF: number;
81
+ })[];
82
+ "stylistic/no-tabs": number;
83
+ "stylistic/no-trailing-spaces": number;
84
+ "stylistic/no-whitespace-before-property": number;
85
+ "stylistic/nonblock-statement-body-position": number;
86
+ "stylistic/object-curly-newline": number;
87
+ "stylistic/object-curly-spacing": (string | number)[];
88
+ "stylistic/object-property-newline": (number | {
89
+ allowAllPropertiesOnSameLine: boolean;
90
+ })[];
91
+ "stylistic/one-var-declaration-per-line": number;
92
+ "stylistic/operator-linebreak": (string | number | {
93
+ overrides: {
94
+ "?": string;
95
+ ":": string;
96
+ };
97
+ })[];
98
+ "stylistic/padded-blocks": number;
99
+ "stylistic/padding-line-between-statements": (number | {
100
+ blankLine: string;
101
+ prev: string;
102
+ next: string;
103
+ })[];
104
+ "stylistic/quote-props": (string | number)[];
105
+ "stylistic/quotes": number;
106
+ "stylistic/rest-spread-spacing": number;
107
+ "stylistic/semi": number;
108
+ "stylistic/semi-spacing": number;
109
+ "stylistic/semi-style": number;
110
+ "stylistic/space-before-blocks": number;
111
+ "stylistic/space-before-function-paren": (number | {
112
+ anonymous: string;
113
+ named: string;
114
+ asyncArrow: string;
115
+ catch: string;
116
+ })[];
117
+ "stylistic/space-in-parens": number;
118
+ "stylistic/space-infix-ops": number;
119
+ "stylistic/space-unary-ops": number;
120
+ "stylistic/spaced-comment": number;
121
+ "stylistic/switch-colon-spacing": number;
122
+ "stylistic/template-curly-spacing": number;
123
+ "stylistic/template-tag-spacing": number;
124
+ "stylistic/type-annotation-spacing": number;
125
+ "stylistic/type-generic-spacing": number;
126
+ "stylistic/type-named-tuple-spacing": number;
127
+ "stylistic/wrap-iife": number;
128
+ "stylistic/wrap-regex": number;
129
+ "stylistic/yield-star-spacing": number;
130
+ };
131
+ export default _default;