@pawover/eslint-rules 0.0.0-alpha.4 → 0.0.0-alpha.5
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/index.js +12 -6
- package/dist/types/core.antfu.d.ts +11 -11
- package/dist/types/core.javascript.d.ts +229 -229
- package/dist/types/core.react.d.ts +89 -89
- package/dist/types/core.stylistic.d.ts +127 -139
- package/dist/types/core.typescript.d.ts +191 -191
- package/dist/types/core.vue.d.ts +43 -43
- package/dist/types/index.d.ts +10 -717
- package/package.json +1 -1
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
91
|
};
|
|
92
92
|
export default _default;
|
|
@@ -1,143 +1,131 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}];
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}];
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}];
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
96
|
};
|
|
97
|
-
}];
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
readonly "stylistic/space-infix-ops": 2;
|
|
131
|
-
readonly "stylistic/space-unary-ops": 2;
|
|
132
|
-
readonly "stylistic/spaced-comment": 2;
|
|
133
|
-
readonly "stylistic/switch-colon-spacing": 2;
|
|
134
|
-
readonly "stylistic/template-curly-spacing": 2;
|
|
135
|
-
readonly "stylistic/template-tag-spacing": 2;
|
|
136
|
-
readonly "stylistic/type-annotation-spacing": 2;
|
|
137
|
-
readonly "stylistic/type-generic-spacing": 2;
|
|
138
|
-
readonly "stylistic/type-named-tuple-spacing": 2;
|
|
139
|
-
readonly "stylistic/wrap-iife": 2;
|
|
140
|
-
readonly "stylistic/wrap-regex": 2;
|
|
141
|
-
readonly "stylistic/yield-star-spacing": 2;
|
|
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;
|
|
142
130
|
};
|
|
143
131
|
export default _default;
|