@mado/oxlint 0.1.0 → 0.2.1
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/CHANGELOG.md +12 -0
- package/dist/eslint.cjs +195 -214
- package/dist/eslint.js +192 -194
- package/dist/import.cjs +41 -60
- package/dist/import.js +38 -40
- package/dist/index.cjs +18 -36
- package/dist/index.js +15 -16
- package/dist/jest.cjs +68 -87
- package/dist/jest.js +65 -67
- package/dist/jsdoc.cjs +31 -50
- package/dist/jsdoc.js +28 -30
- package/dist/jsx-a11y.cjs +44 -63
- package/dist/jsx-a11y.js +41 -43
- package/dist/nextjs.cjs +29 -48
- package/dist/nextjs.js +26 -28
- package/dist/node.cjs +19 -38
- package/dist/node.js +16 -18
- package/dist/oxc.cjs +35 -54
- package/dist/oxc.js +32 -34
- package/dist/promise.cjs +24 -43
- package/dist/promise.js +21 -23
- package/dist/react-perf.cjs +12 -31
- package/dist/react-perf.js +9 -11
- package/dist/react.cjs +93 -112
- package/dist/react.js +90 -92
- package/dist/typescript.cjs +119 -138
- package/dist/typescript.js +116 -118
- package/dist/unicorn.cjs +146 -165
- package/dist/unicorn.js +143 -145
- package/dist/vitest.cjs +81 -100
- package/dist/vitest.js +78 -80
- package/dist/vue.cjs +54 -73
- package/dist/vue.js +51 -53
- package/package.json +9 -7
package/dist/react.cjs
CHANGED
|
@@ -1,201 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default: () => react_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(react_exports);
|
|
26
|
-
var rules = {
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const rules = {
|
|
27
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/button-has-type.html
|
|
28
|
-
|
|
7
|
+
'react/button-has-type': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/capitalized-calls.html
|
|
30
|
-
|
|
9
|
+
'react/capitalized-calls': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.html
|
|
32
|
-
|
|
11
|
+
'react/checked-requires-onchange-or-readonly': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/display-name.html
|
|
34
|
-
|
|
13
|
+
'react/display-name': 'off',
|
|
35
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/error-boundaries.html
|
|
36
|
-
|
|
15
|
+
'react/error-boundaries': 'off',
|
|
37
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-deps.html
|
|
38
|
-
|
|
17
|
+
'react/exhaustive-deps': 'off',
|
|
39
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-effect-dependencies.html
|
|
40
|
-
|
|
19
|
+
'react/exhaustive-effect-dependencies': 'off',
|
|
41
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-component-props.html
|
|
42
|
-
|
|
21
|
+
'react/forbid-component-props': 'off',
|
|
43
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-dom-props.html
|
|
44
|
-
|
|
23
|
+
'react/forbid-dom-props': 'off',
|
|
45
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-elements.html
|
|
46
|
-
|
|
25
|
+
'react/forbid-elements': 'off',
|
|
47
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forward-ref-uses-ref.html
|
|
48
|
-
|
|
27
|
+
'react/forward-ref-uses-ref': 'off',
|
|
49
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/function-component-definition.html
|
|
50
|
-
|
|
29
|
+
'react/function-component-definition': 'off',
|
|
51
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/globals.html
|
|
52
|
-
|
|
31
|
+
'react/globals': 'off',
|
|
53
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/hook-use-state.html
|
|
54
|
-
|
|
33
|
+
'react/hook-use-state': 'off',
|
|
55
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/hooks.html
|
|
56
|
-
|
|
35
|
+
'react/hooks': 'off',
|
|
57
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.html
|
|
58
|
-
|
|
37
|
+
'react/iframe-missing-sandbox': 'off',
|
|
59
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/immutability.html
|
|
60
|
-
|
|
39
|
+
'react/immutability': 'off',
|
|
61
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/incompatible-library.html
|
|
62
|
-
|
|
41
|
+
'react/incompatible-library': 'off',
|
|
63
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/invariant.html
|
|
64
|
-
|
|
43
|
+
'react/invariant': 'off',
|
|
65
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-boolean-value.html
|
|
66
|
-
|
|
45
|
+
'react/jsx-boolean-value': 'off',
|
|
67
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.html
|
|
68
|
-
|
|
47
|
+
'react/jsx-curly-brace-presence': 'off',
|
|
69
48
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-filename-extension.html
|
|
70
|
-
|
|
49
|
+
'react/jsx-filename-extension': 'off',
|
|
71
50
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-fragments.html
|
|
72
|
-
|
|
51
|
+
'react/jsx-fragments': 'off',
|
|
73
52
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-handler-names.html
|
|
74
|
-
|
|
53
|
+
'react/jsx-handler-names': 'off',
|
|
75
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-key.html
|
|
76
|
-
|
|
55
|
+
'react/jsx-key': 'off',
|
|
77
56
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-max-depth.html
|
|
78
|
-
|
|
57
|
+
'react/jsx-max-depth': 'off',
|
|
79
58
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.html
|
|
80
|
-
|
|
59
|
+
'react/jsx-no-comment-textnodes': 'off',
|
|
81
60
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-constructed-context-values.html
|
|
82
|
-
|
|
61
|
+
'react/jsx-no-constructed-context-values': 'off',
|
|
83
62
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.html
|
|
84
|
-
|
|
63
|
+
'react/jsx-no-duplicate-props': 'off',
|
|
85
64
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-literals.html
|
|
86
|
-
|
|
65
|
+
'react/jsx-no-literals': 'off',
|
|
87
66
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-script-url.html
|
|
88
|
-
|
|
67
|
+
'react/jsx-no-script-url': 'off',
|
|
89
68
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-target-blank.html
|
|
90
|
-
|
|
69
|
+
'react/jsx-no-target-blank': 'off',
|
|
91
70
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-undef.html
|
|
92
|
-
|
|
71
|
+
'react/jsx-no-undef': 'off',
|
|
93
72
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.html
|
|
94
|
-
|
|
73
|
+
'react/jsx-no-useless-fragment': 'off',
|
|
95
74
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-pascal-case.html
|
|
96
|
-
|
|
75
|
+
'react/jsx-pascal-case': 'off',
|
|
97
76
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.html
|
|
98
|
-
|
|
77
|
+
'react/jsx-props-no-spread-multi': 'off',
|
|
99
78
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spreading.html
|
|
100
|
-
|
|
79
|
+
'react/jsx-props-no-spreading': 'off',
|
|
101
80
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/memo-dependencies.html
|
|
102
|
-
|
|
81
|
+
'react/memo-dependencies': 'off',
|
|
103
82
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-array-index-key.html
|
|
104
|
-
|
|
83
|
+
'react/no-array-index-key': 'off',
|
|
105
84
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-children-prop.html
|
|
106
|
-
|
|
85
|
+
'react/no-children-prop': 'off',
|
|
107
86
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-clone-element.html
|
|
108
|
-
|
|
87
|
+
'react/no-clone-element': 'off',
|
|
109
88
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-danger.html
|
|
110
|
-
|
|
89
|
+
'react/no-danger': 'off',
|
|
111
90
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-danger-with-children.html
|
|
112
|
-
|
|
91
|
+
'react/no-danger-with-children': 'off',
|
|
113
92
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-deriving-state-in-effects.html
|
|
114
|
-
|
|
93
|
+
'react/no-deriving-state-in-effects': 'off',
|
|
115
94
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-mount-set-state.html
|
|
116
|
-
|
|
95
|
+
'react/no-did-mount-set-state': 'off',
|
|
117
96
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-update-set-state.html
|
|
118
|
-
|
|
97
|
+
'react/no-did-update-set-state': 'off',
|
|
119
98
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-direct-mutation-state.html
|
|
120
|
-
|
|
99
|
+
'react/no-direct-mutation-state': 'off',
|
|
121
100
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-find-dom-node.html
|
|
122
|
-
|
|
101
|
+
'react/no-find-dom-node': 'off',
|
|
123
102
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-is-mounted.html
|
|
124
|
-
|
|
103
|
+
'react/no-is-mounted': 'off',
|
|
125
104
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-multi-comp.html
|
|
126
|
-
|
|
105
|
+
'react/no-multi-comp': 'off',
|
|
127
106
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-namespace.html
|
|
128
|
-
|
|
107
|
+
'react/no-namespace': 'off',
|
|
129
108
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-object-type-as-default-prop.html
|
|
130
|
-
|
|
109
|
+
'react/no-object-type-as-default-prop': 'off',
|
|
131
110
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-react-children.html
|
|
132
|
-
|
|
111
|
+
'react/no-react-children': 'off',
|
|
133
112
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-redundant-should-component-update.html
|
|
134
|
-
|
|
113
|
+
'react/no-redundant-should-component-update': 'off',
|
|
135
114
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-render-return-value.html
|
|
136
|
-
|
|
115
|
+
'react/no-render-return-value': 'off',
|
|
137
116
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-set-state.html
|
|
138
|
-
|
|
117
|
+
'react/no-set-state': 'off',
|
|
139
118
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-string-refs.html
|
|
140
|
-
|
|
119
|
+
'react/no-string-refs': 'off',
|
|
141
120
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-this-in-sfc.html
|
|
142
|
-
|
|
121
|
+
'react/no-this-in-sfc': 'off',
|
|
143
122
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unescaped-entities.html
|
|
144
|
-
|
|
123
|
+
'react/no-unescaped-entities': 'off',
|
|
145
124
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unknown-property.html
|
|
146
|
-
|
|
125
|
+
'react/no-unknown-property': 'off',
|
|
147
126
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unsafe.html
|
|
148
|
-
|
|
127
|
+
'react/no-unsafe': 'off',
|
|
149
128
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unstable-nested-components.html
|
|
150
|
-
|
|
129
|
+
'react/no-unstable-nested-components': 'off',
|
|
151
130
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-will-update-set-state.html
|
|
152
|
-
|
|
131
|
+
'react/no-will-update-set-state': 'off',
|
|
153
132
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/only-export-components.html
|
|
154
|
-
|
|
133
|
+
'react/only-export-components': 'off',
|
|
155
134
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-es6-class.html
|
|
156
|
-
|
|
135
|
+
'react/prefer-es6-class': 'off',
|
|
157
136
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-function-component.html
|
|
158
|
-
|
|
137
|
+
'react/prefer-function-component': 'off',
|
|
159
138
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/preserve-manual-memoization.html
|
|
160
|
-
|
|
139
|
+
'react/preserve-manual-memoization': 'off',
|
|
161
140
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/purity.html
|
|
162
|
-
|
|
141
|
+
'react/purity': 'off',
|
|
163
142
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/react-in-jsx-scope.html
|
|
164
|
-
|
|
143
|
+
'react/react-in-jsx-scope': 'off',
|
|
165
144
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/refs.html
|
|
166
|
-
|
|
145
|
+
'react/refs': 'off',
|
|
167
146
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/require-render-return.html
|
|
168
|
-
|
|
147
|
+
'react/require-render-return': 'off',
|
|
169
148
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/rule-suppression.html
|
|
170
|
-
|
|
149
|
+
'react/rule-suppression': 'off',
|
|
171
150
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/rules-of-hooks.html
|
|
172
|
-
|
|
151
|
+
'react/rules-of-hooks': 'off',
|
|
173
152
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/self-closing-comp.html
|
|
174
|
-
|
|
153
|
+
'react/self-closing-comp': 'off',
|
|
175
154
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/set-state-in-effect.html
|
|
176
|
-
|
|
155
|
+
'react/set-state-in-effect': 'off',
|
|
177
156
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/set-state-in-render.html
|
|
178
|
-
|
|
157
|
+
'react/set-state-in-render': 'off',
|
|
179
158
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/state-in-constructor.html
|
|
180
|
-
|
|
159
|
+
'react/state-in-constructor': 'off',
|
|
181
160
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/static-components.html
|
|
182
|
-
|
|
161
|
+
'react/static-components': 'off',
|
|
183
162
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/style-prop-object.html
|
|
184
|
-
|
|
163
|
+
'react/style-prop-object': 'off',
|
|
185
164
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/syntax.html
|
|
186
|
-
|
|
165
|
+
'react/syntax': 'off',
|
|
187
166
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/todo.html
|
|
188
|
-
|
|
167
|
+
'react/todo': 'off',
|
|
189
168
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/unsupported-syntax.html
|
|
190
|
-
|
|
169
|
+
'react/unsupported-syntax': 'off',
|
|
191
170
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/use-memo.html
|
|
192
|
-
|
|
171
|
+
'react/use-memo': 'off',
|
|
193
172
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.html
|
|
194
|
-
|
|
173
|
+
'react/void-dom-elements-no-children': 'off',
|
|
195
174
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/void-use-memo.html
|
|
196
|
-
|
|
175
|
+
'react/void-use-memo': 'off'
|
|
197
176
|
};
|
|
198
|
-
var
|
|
199
|
-
plugins: [
|
|
177
|
+
var react = {
|
|
178
|
+
plugins: ['react'],
|
|
200
179
|
rules
|
|
201
180
|
};
|
|
181
|
+
|
|
182
|
+
exports.default = react;
|
package/dist/react.js
CHANGED
|
@@ -1,180 +1,178 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/button-has-type.html
|
|
4
|
-
|
|
3
|
+
'react/button-has-type': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/capitalized-calls.html
|
|
6
|
-
|
|
5
|
+
'react/capitalized-calls': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.html
|
|
8
|
-
|
|
7
|
+
'react/checked-requires-onchange-or-readonly': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/display-name.html
|
|
10
|
-
|
|
9
|
+
'react/display-name': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/error-boundaries.html
|
|
12
|
-
|
|
11
|
+
'react/error-boundaries': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-deps.html
|
|
14
|
-
|
|
13
|
+
'react/exhaustive-deps': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-effect-dependencies.html
|
|
16
|
-
|
|
15
|
+
'react/exhaustive-effect-dependencies': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-component-props.html
|
|
18
|
-
|
|
17
|
+
'react/forbid-component-props': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-dom-props.html
|
|
20
|
-
|
|
19
|
+
'react/forbid-dom-props': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-elements.html
|
|
22
|
-
|
|
21
|
+
'react/forbid-elements': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/forward-ref-uses-ref.html
|
|
24
|
-
|
|
23
|
+
'react/forward-ref-uses-ref': 'off',
|
|
25
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/function-component-definition.html
|
|
26
|
-
|
|
25
|
+
'react/function-component-definition': 'off',
|
|
27
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/globals.html
|
|
28
|
-
|
|
27
|
+
'react/globals': 'off',
|
|
29
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/hook-use-state.html
|
|
30
|
-
|
|
29
|
+
'react/hook-use-state': 'off',
|
|
31
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/hooks.html
|
|
32
|
-
|
|
31
|
+
'react/hooks': 'off',
|
|
33
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.html
|
|
34
|
-
|
|
33
|
+
'react/iframe-missing-sandbox': 'off',
|
|
35
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/immutability.html
|
|
36
|
-
|
|
35
|
+
'react/immutability': 'off',
|
|
37
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/incompatible-library.html
|
|
38
|
-
|
|
37
|
+
'react/incompatible-library': 'off',
|
|
39
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/invariant.html
|
|
40
|
-
|
|
39
|
+
'react/invariant': 'off',
|
|
41
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-boolean-value.html
|
|
42
|
-
|
|
41
|
+
'react/jsx-boolean-value': 'off',
|
|
43
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.html
|
|
44
|
-
|
|
43
|
+
'react/jsx-curly-brace-presence': 'off',
|
|
45
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-filename-extension.html
|
|
46
|
-
|
|
45
|
+
'react/jsx-filename-extension': 'off',
|
|
47
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-fragments.html
|
|
48
|
-
|
|
47
|
+
'react/jsx-fragments': 'off',
|
|
49
48
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-handler-names.html
|
|
50
|
-
|
|
49
|
+
'react/jsx-handler-names': 'off',
|
|
51
50
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-key.html
|
|
52
|
-
|
|
51
|
+
'react/jsx-key': 'off',
|
|
53
52
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-max-depth.html
|
|
54
|
-
|
|
53
|
+
'react/jsx-max-depth': 'off',
|
|
55
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.html
|
|
56
|
-
|
|
55
|
+
'react/jsx-no-comment-textnodes': 'off',
|
|
57
56
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-constructed-context-values.html
|
|
58
|
-
|
|
57
|
+
'react/jsx-no-constructed-context-values': 'off',
|
|
59
58
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.html
|
|
60
|
-
|
|
59
|
+
'react/jsx-no-duplicate-props': 'off',
|
|
61
60
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-literals.html
|
|
62
|
-
|
|
61
|
+
'react/jsx-no-literals': 'off',
|
|
63
62
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-script-url.html
|
|
64
|
-
|
|
63
|
+
'react/jsx-no-script-url': 'off',
|
|
65
64
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-target-blank.html
|
|
66
|
-
|
|
65
|
+
'react/jsx-no-target-blank': 'off',
|
|
67
66
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-undef.html
|
|
68
|
-
|
|
67
|
+
'react/jsx-no-undef': 'off',
|
|
69
68
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.html
|
|
70
|
-
|
|
69
|
+
'react/jsx-no-useless-fragment': 'off',
|
|
71
70
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-pascal-case.html
|
|
72
|
-
|
|
71
|
+
'react/jsx-pascal-case': 'off',
|
|
73
72
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.html
|
|
74
|
-
|
|
73
|
+
'react/jsx-props-no-spread-multi': 'off',
|
|
75
74
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spreading.html
|
|
76
|
-
|
|
75
|
+
'react/jsx-props-no-spreading': 'off',
|
|
77
76
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/memo-dependencies.html
|
|
78
|
-
|
|
77
|
+
'react/memo-dependencies': 'off',
|
|
79
78
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-array-index-key.html
|
|
80
|
-
|
|
79
|
+
'react/no-array-index-key': 'off',
|
|
81
80
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-children-prop.html
|
|
82
|
-
|
|
81
|
+
'react/no-children-prop': 'off',
|
|
83
82
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-clone-element.html
|
|
84
|
-
|
|
83
|
+
'react/no-clone-element': 'off',
|
|
85
84
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-danger.html
|
|
86
|
-
|
|
85
|
+
'react/no-danger': 'off',
|
|
87
86
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-danger-with-children.html
|
|
88
|
-
|
|
87
|
+
'react/no-danger-with-children': 'off',
|
|
89
88
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-deriving-state-in-effects.html
|
|
90
|
-
|
|
89
|
+
'react/no-deriving-state-in-effects': 'off',
|
|
91
90
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-mount-set-state.html
|
|
92
|
-
|
|
91
|
+
'react/no-did-mount-set-state': 'off',
|
|
93
92
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-update-set-state.html
|
|
94
|
-
|
|
93
|
+
'react/no-did-update-set-state': 'off',
|
|
95
94
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-direct-mutation-state.html
|
|
96
|
-
|
|
95
|
+
'react/no-direct-mutation-state': 'off',
|
|
97
96
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-find-dom-node.html
|
|
98
|
-
|
|
97
|
+
'react/no-find-dom-node': 'off',
|
|
99
98
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-is-mounted.html
|
|
100
|
-
|
|
99
|
+
'react/no-is-mounted': 'off',
|
|
101
100
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-multi-comp.html
|
|
102
|
-
|
|
101
|
+
'react/no-multi-comp': 'off',
|
|
103
102
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-namespace.html
|
|
104
|
-
|
|
103
|
+
'react/no-namespace': 'off',
|
|
105
104
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-object-type-as-default-prop.html
|
|
106
|
-
|
|
105
|
+
'react/no-object-type-as-default-prop': 'off',
|
|
107
106
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-react-children.html
|
|
108
|
-
|
|
107
|
+
'react/no-react-children': 'off',
|
|
109
108
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-redundant-should-component-update.html
|
|
110
|
-
|
|
109
|
+
'react/no-redundant-should-component-update': 'off',
|
|
111
110
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-render-return-value.html
|
|
112
|
-
|
|
111
|
+
'react/no-render-return-value': 'off',
|
|
113
112
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-set-state.html
|
|
114
|
-
|
|
113
|
+
'react/no-set-state': 'off',
|
|
115
114
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-string-refs.html
|
|
116
|
-
|
|
115
|
+
'react/no-string-refs': 'off',
|
|
117
116
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-this-in-sfc.html
|
|
118
|
-
|
|
117
|
+
'react/no-this-in-sfc': 'off',
|
|
119
118
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unescaped-entities.html
|
|
120
|
-
|
|
119
|
+
'react/no-unescaped-entities': 'off',
|
|
121
120
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unknown-property.html
|
|
122
|
-
|
|
121
|
+
'react/no-unknown-property': 'off',
|
|
123
122
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unsafe.html
|
|
124
|
-
|
|
123
|
+
'react/no-unsafe': 'off',
|
|
125
124
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-unstable-nested-components.html
|
|
126
|
-
|
|
125
|
+
'react/no-unstable-nested-components': 'off',
|
|
127
126
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/no-will-update-set-state.html
|
|
128
|
-
|
|
127
|
+
'react/no-will-update-set-state': 'off',
|
|
129
128
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/only-export-components.html
|
|
130
|
-
|
|
129
|
+
'react/only-export-components': 'off',
|
|
131
130
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-es6-class.html
|
|
132
|
-
|
|
131
|
+
'react/prefer-es6-class': 'off',
|
|
133
132
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-function-component.html
|
|
134
|
-
|
|
133
|
+
'react/prefer-function-component': 'off',
|
|
135
134
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/preserve-manual-memoization.html
|
|
136
|
-
|
|
135
|
+
'react/preserve-manual-memoization': 'off',
|
|
137
136
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/purity.html
|
|
138
|
-
|
|
137
|
+
'react/purity': 'off',
|
|
139
138
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/react-in-jsx-scope.html
|
|
140
|
-
|
|
139
|
+
'react/react-in-jsx-scope': 'off',
|
|
141
140
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/refs.html
|
|
142
|
-
|
|
141
|
+
'react/refs': 'off',
|
|
143
142
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/require-render-return.html
|
|
144
|
-
|
|
143
|
+
'react/require-render-return': 'off',
|
|
145
144
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/rule-suppression.html
|
|
146
|
-
|
|
145
|
+
'react/rule-suppression': 'off',
|
|
147
146
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/rules-of-hooks.html
|
|
148
|
-
|
|
147
|
+
'react/rules-of-hooks': 'off',
|
|
149
148
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/self-closing-comp.html
|
|
150
|
-
|
|
149
|
+
'react/self-closing-comp': 'off',
|
|
151
150
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/set-state-in-effect.html
|
|
152
|
-
|
|
151
|
+
'react/set-state-in-effect': 'off',
|
|
153
152
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/set-state-in-render.html
|
|
154
|
-
|
|
153
|
+
'react/set-state-in-render': 'off',
|
|
155
154
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/state-in-constructor.html
|
|
156
|
-
|
|
155
|
+
'react/state-in-constructor': 'off',
|
|
157
156
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/static-components.html
|
|
158
|
-
|
|
157
|
+
'react/static-components': 'off',
|
|
159
158
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/style-prop-object.html
|
|
160
|
-
|
|
159
|
+
'react/style-prop-object': 'off',
|
|
161
160
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/syntax.html
|
|
162
|
-
|
|
161
|
+
'react/syntax': 'off',
|
|
163
162
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/todo.html
|
|
164
|
-
|
|
163
|
+
'react/todo': 'off',
|
|
165
164
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/unsupported-syntax.html
|
|
166
|
-
|
|
165
|
+
'react/unsupported-syntax': 'off',
|
|
167
166
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/use-memo.html
|
|
168
|
-
|
|
167
|
+
'react/use-memo': 'off',
|
|
169
168
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.html
|
|
170
|
-
|
|
169
|
+
'react/void-dom-elements-no-children': 'off',
|
|
171
170
|
// https://oxc.rs/docs/guide/usage/linter/rules/react/void-use-memo.html
|
|
172
|
-
|
|
171
|
+
'react/void-use-memo': 'off'
|
|
173
172
|
};
|
|
174
|
-
var
|
|
175
|
-
plugins: [
|
|
173
|
+
var react = {
|
|
174
|
+
plugins: ['react'],
|
|
176
175
|
rules
|
|
177
176
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
};
|
|
177
|
+
|
|
178
|
+
export { react as default };
|