eslint-config-seekingalpha-react 10.38.0 → 10.39.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 +8 -0
- package/index.js +1 -1
- package/oxc.js +2 -3
- package/oxlint-config.js +1 -1
- package/package.json +1 -1
- package/rules/eslint-plugin-jsx-a11y/oxlint-config.js +23 -21
- package/rules/eslint-plugin-react/jsx.js +15 -15
- package/rules/eslint-plugin-react/oxlint-config.js +3 -0
- package/rules/eslint-plugin-react/oxlint-disabled.js +3 -0
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import jsxA11yConfig from './rules/eslint-plugin-jsx-a11y/index.js';
|
|
2
|
-
import reactConfig from './rules/eslint-plugin-react/index.js';
|
|
3
2
|
import reactHooksConfig from './rules/eslint-plugin-react-hooks/index.js';
|
|
3
|
+
import reactConfig from './rules/eslint-plugin-react/index.js';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
plugins: {
|
package/oxc.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import config from './index.js';
|
|
2
2
|
import { ESLintPluginA11YDisabled } from './rules/eslint-plugin-jsx-a11y/oxlint-disabled.js';
|
|
3
3
|
import { ESLintPluginReactHooksDisabled } from './rules/eslint-plugin-react-hooks/oxlint-disabled.js';
|
|
4
|
-
|
|
5
|
-
import config from './index.js';
|
|
4
|
+
import { ESLintPluginReactDisabled } from './rules/eslint-plugin-react/oxlint-disabled.js';
|
|
6
5
|
|
|
7
6
|
const oxcConfig = {
|
|
8
7
|
...config,
|
package/oxlint-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import reactConfig from './rules/eslint-plugin-react/oxlint-config.js';
|
|
2
1
|
import jsxA11yConfig from './rules/eslint-plugin-jsx-a11y/oxlint-config.js';
|
|
3
2
|
import reactHooksConfig from './rules/eslint-plugin-react-hooks/oxlint-config.js';
|
|
3
|
+
import reactConfig from './rules/eslint-plugin-react/oxlint-config.js';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
extends: [reactConfig, jsxA11yConfig, reactHooksConfig],
|
package/package.json
CHANGED
|
@@ -118,27 +118,29 @@ export default {
|
|
|
118
118
|
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
|
|
119
119
|
'error',
|
|
120
120
|
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
121
|
+
allowed_roles: {
|
|
122
|
+
ul: [
|
|
123
|
+
'listbox',
|
|
124
|
+
'menu',
|
|
125
|
+
'menubar',
|
|
126
|
+
'radiogroup',
|
|
127
|
+
'tablist',
|
|
128
|
+
'tree',
|
|
129
|
+
'treegrid',
|
|
130
|
+
],
|
|
131
|
+
ol: [
|
|
132
|
+
'listbox',
|
|
133
|
+
'menu',
|
|
134
|
+
'menubar',
|
|
135
|
+
'radiogroup',
|
|
136
|
+
'tablist',
|
|
137
|
+
'tree',
|
|
138
|
+
'treegrid',
|
|
139
|
+
],
|
|
140
|
+
li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
|
|
141
|
+
table: ['grid'],
|
|
142
|
+
td: ['gridcell'],
|
|
143
|
+
},
|
|
142
144
|
},
|
|
143
145
|
],
|
|
144
146
|
'jsx-a11y/no-interactive-element-to-noninteractive-role': [
|
|
@@ -13,31 +13,31 @@ export default {
|
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
|
|
16
|
-
* Disabled to work with
|
|
16
|
+
* Disabled to work with oxfmt
|
|
17
17
|
*/
|
|
18
18
|
'react/jsx-child-element-spacing': 'off',
|
|
19
19
|
|
|
20
20
|
/*
|
|
21
21
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
|
|
22
|
-
* disable to work with
|
|
22
|
+
* disable to work with oxfmt
|
|
23
23
|
*/
|
|
24
24
|
'react/jsx-closing-bracket-location': 'off',
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
|
|
28
|
-
* disable to work with
|
|
28
|
+
* disable to work with oxfmt
|
|
29
29
|
*/
|
|
30
30
|
'react/jsx-closing-tag-location': 'off',
|
|
31
31
|
|
|
32
32
|
/*
|
|
33
33
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
|
|
34
|
-
* disable to work with
|
|
34
|
+
* disable to work with oxfmt
|
|
35
35
|
*/
|
|
36
36
|
'react/jsx-curly-spacing': 'off',
|
|
37
37
|
|
|
38
38
|
/*
|
|
39
39
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md
|
|
40
|
-
* disable to work with
|
|
40
|
+
* disable to work with oxfmt
|
|
41
41
|
*/
|
|
42
42
|
'react/jsx-equals-spacing': 'off',
|
|
43
43
|
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
|
|
52
52
|
/*
|
|
53
53
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
|
|
54
|
-
* disable to work with
|
|
54
|
+
* disable to work with oxfmt
|
|
55
55
|
*/
|
|
56
56
|
'react/jsx-first-prop-new-line': 'off',
|
|
57
57
|
|
|
@@ -63,13 +63,13 @@ export default {
|
|
|
63
63
|
|
|
64
64
|
/*
|
|
65
65
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md
|
|
66
|
-
* disable to work with
|
|
66
|
+
* disable to work with oxfmt
|
|
67
67
|
*/
|
|
68
68
|
'react/jsx-indent': 'off',
|
|
69
69
|
|
|
70
70
|
/*
|
|
71
71
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md
|
|
72
|
-
* disable ti work with
|
|
72
|
+
* disable ti work with oxfmt
|
|
73
73
|
*/
|
|
74
74
|
'react/jsx-indent-props': 'off',
|
|
75
75
|
|
|
@@ -93,13 +93,13 @@ export default {
|
|
|
93
93
|
|
|
94
94
|
/*
|
|
95
95
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
|
|
96
|
-
* disable to work with
|
|
96
|
+
* disable to work with oxfmt
|
|
97
97
|
*/
|
|
98
98
|
'react/jsx-max-props-per-line': 'off',
|
|
99
99
|
|
|
100
100
|
/*
|
|
101
101
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-newline.md
|
|
102
|
-
* disable to work with
|
|
102
|
+
* disable to work with oxfmt
|
|
103
103
|
*/
|
|
104
104
|
'react/jsx-newline': 'off',
|
|
105
105
|
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
|
|
148
148
|
/*
|
|
149
149
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
|
|
150
|
-
* disable to worl with
|
|
150
|
+
* disable to worl with oxfmt
|
|
151
151
|
*/
|
|
152
152
|
'react/jsx-one-expression-per-line': 'off',
|
|
153
153
|
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
|
|
172
172
|
/*
|
|
173
173
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
174
|
-
* disable to work with
|
|
174
|
+
* disable to work with oxfmt
|
|
175
175
|
*/
|
|
176
176
|
'react/jsx-props-no-multi-spaces': 'off',
|
|
177
177
|
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
193
193
|
|
|
194
194
|
/*
|
|
195
195
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md
|
|
196
|
-
* disable to work with
|
|
196
|
+
* disable to work with oxfmt
|
|
197
197
|
*/
|
|
198
198
|
'react/jsx-tag-spacing': 'off',
|
|
199
199
|
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
208
208
|
|
|
209
209
|
/*
|
|
210
210
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
|
|
211
|
-
* disable to work with
|
|
211
|
+
* disable to work with oxfmt
|
|
212
212
|
*/
|
|
213
213
|
'react/jsx-wrap-multilines': 'off',
|
|
214
214
|
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
|
|
224
224
|
/*
|
|
225
225
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
|
|
226
|
-
* disable to work with
|
|
226
|
+
* disable to work with oxfmt
|
|
227
227
|
*/
|
|
228
228
|
'react/jsx-curly-newline': 'off',
|
|
229
229
|
|
|
@@ -33,6 +33,7 @@ export default {
|
|
|
33
33
|
'react/jsx-no-comment-textnodes': 'error',
|
|
34
34
|
'react/jsx-no-constructed-context-values': 'error',
|
|
35
35
|
'react/jsx-no-duplicate-props': 'error',
|
|
36
|
+
'react/jsx-no-literals': 'off',
|
|
36
37
|
'react/jsx-props-no-spread-multi': 'error',
|
|
37
38
|
'react/no-multi-comp': 'off',
|
|
38
39
|
'react/jsx-no-target-blank': [
|
|
@@ -159,6 +160,7 @@ export default {
|
|
|
159
160
|
'react/no-find-dom-node': 'error',
|
|
160
161
|
'react/no-is-mounted': 'error',
|
|
161
162
|
'react/no-namespace': 'error',
|
|
163
|
+
'react/no-object-type-as-default-prop': 'error',
|
|
162
164
|
'react/no-redundant-should-component-update': 'error',
|
|
163
165
|
'react/no-render-return-value': 'error',
|
|
164
166
|
'react/no-set-state': 'off',
|
|
@@ -168,6 +170,7 @@ export default {
|
|
|
168
170
|
'react/no-unescaped-entities': 'error',
|
|
169
171
|
'react/no-unknown-property': 'error',
|
|
170
172
|
'react/no-unsafe': 'error',
|
|
173
|
+
'react/no-unstable-nested-components': 'error',
|
|
171
174
|
'react/no-will-update-set-state': 'error',
|
|
172
175
|
'react/prefer-es6-class': ['error', 'always'],
|
|
173
176
|
'react/react-in-jsx-scope': 'off',
|
|
@@ -9,6 +9,7 @@ export const ESLintPluginReactDisabled = {
|
|
|
9
9
|
'react/jsx-no-constructed-context-values': 'off',
|
|
10
10
|
'react/jsx-no-duplicate-props': 'off',
|
|
11
11
|
'react/jsx-props-no-spread-multi': 'off',
|
|
12
|
+
'react/jsx-no-literals': 'off',
|
|
12
13
|
'react/jsx-no-target-blank': 'off',
|
|
13
14
|
'react/jsx-no-undef': 'off',
|
|
14
15
|
'react/jsx-curly-brace-presence': 'off',
|
|
@@ -35,6 +36,7 @@ export const ESLintPluginReactDisabled = {
|
|
|
35
36
|
'react/no-find-dom-node': 'off',
|
|
36
37
|
'react/no-is-mounted': 'off',
|
|
37
38
|
'react/no-namespace': 'off',
|
|
39
|
+
'react/no-object-type-as-default-prop': 'off',
|
|
38
40
|
'react/no-multi-comp': 'off',
|
|
39
41
|
'react/no-redundant-should-component-update': 'off',
|
|
40
42
|
'react/no-render-return-value': 'off',
|
|
@@ -44,6 +46,7 @@ export const ESLintPluginReactDisabled = {
|
|
|
44
46
|
'react/no-unescaped-entities': 'off',
|
|
45
47
|
'react/no-unknown-property': 'off',
|
|
46
48
|
'react/no-unsafe': 'off',
|
|
49
|
+
'react/no-unstable-nested-components': 'off',
|
|
47
50
|
'react/no-will-update-set-state': 'off',
|
|
48
51
|
'react/prefer-es6-class': 'off',
|
|
49
52
|
'react/react-in-jsx-scope': 'off',
|