eslint-config-seekingalpha-react 10.26.0 → 10.27.0

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.27.0 - 2026-01-27
4
+
5
+ - [new] add sharable oxlint config with eslint-plugin-jsx-a11y and eslint-plugin-react-hooks rules
6
+
3
7
  ## 10.26.0 - 2026-01-27
4
8
 
5
9
  - [new] add sharable oxlint config with eslint-plugin-react rules
package/oxc.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import { ESLintPluginReactDisabled } from './rules/eslint-plugin-react/oxlint-disabled.js';
2
+ import { ESLintPluginA11YDisabled } from './rules/eslint-plugin-jsx-a11y/oxlint-disabled.js';
3
+ import { ESLintPluginReactHooksDisabled } from './rules/eslint-plugin-react-hooks/oxlint-disabled.js';
2
4
 
3
5
  import config from './index.js';
4
6
 
@@ -7,6 +9,8 @@ const oxcConfig = {
7
9
  rules: {
8
10
  ...config.rules,
9
11
  ...ESLintPluginReactDisabled,
12
+ ...ESLintPluginA11YDisabled,
13
+ ...ESLintPluginReactHooksDisabled,
10
14
  },
11
15
  };
12
16
 
@@ -1,4 +1,8 @@
1
1
  {
2
2
  "$schema": "./node_modules/oxlint/configuration_schema.json",
3
- "extends": ["./rules/eslint-plugin-react/oxlint-config.json"]
3
+ "extends": [
4
+ "./rules/eslint-plugin-react/oxlint-config.json",
5
+ "./rules/eslint-plugin-a11y/oxlint-config.json",
6
+ "./rules/eslint-plugin-react-hooks/oxlint-config.json"
7
+ ]
4
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-react",
3
- "version": "10.26.0",
3
+ "version": "10.27.0",
4
4
  "description": "SeekingAlpha's sharable React.js ESLint config",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,6 +17,8 @@ export default {
17
17
  },
18
18
  ],
19
19
 
20
+ 'anchor-ambiguous-text': 'off',
21
+
20
22
  // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md
21
23
  'jsx-a11y/anchor-has-content': [
22
24
  'error',
@@ -268,5 +270,7 @@ export default {
268
270
  'jsx-a11y/control-has-associated-label': 'error',
269
271
 
270
272
  'jsx-a11y/prefer-tag-over-role': 'error',
273
+
274
+ 'jsx-a11y/no-aria-hidden-on-focusable': 'off',
271
275
  },
272
276
  };
@@ -0,0 +1,116 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["jsx-a11y"],
4
+ "rules": {
5
+ "jsx-a11y/alt-text": [
6
+ "error",
7
+ {
8
+ "elements": ["img", "object", "area", "input[type='image']"],
9
+ "img": [],
10
+ "object": [],
11
+ "area": [],
12
+ "input[type='image']": []
13
+ }
14
+ ],
15
+ "anchor-ambiguous-text": "off",
16
+ "jsx-a11y/anchor-has-content": [
17
+ "error",
18
+ {
19
+ "components": ["Anchor", "Link"]
20
+ }
21
+ ],
22
+ "jsx-a11y/anchor-is-valid": [
23
+ "error",
24
+ {
25
+ "components": ["Anchor", "Link"],
26
+ "specialLink": ["to"],
27
+ "aspects": ["noHref", "invalidHref", "preferButton"]
28
+ }
29
+ ],
30
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error",
31
+ "jsx-a11y/aria-props": "error",
32
+ "jsx-a11y/aria-proptypes": "error",
33
+ "jsx-a11y/aria-role": [
34
+ "error",
35
+ {
36
+ "ignoreNonDom": false
37
+ }
38
+ ],
39
+ "jsx-a11y/aria-unsupported-elements": "error",
40
+ "jsx-a11y/autocomplete-valid": "error",
41
+ "jsx-a11y/click-events-have-key-events": "error",
42
+ "jsx-a11y/heading-has-content": [
43
+ "error",
44
+ {
45
+ "components": [""]
46
+ }
47
+ ],
48
+ "jsx-a11y/html-has-lang": "error",
49
+ "jsx-a11y/iframe-has-title": "error",
50
+ "jsx-a11y/img-redundant-alt": "error",
51
+ "jsx-a11y/lang": "error",
52
+ "jsx-a11y/media-has-caption": [
53
+ "error",
54
+ {
55
+ "audio": [],
56
+ "video": [],
57
+ "track": []
58
+ }
59
+ ],
60
+ "jsx-a11y/mouse-events-have-key-events": "error",
61
+ "jsx-a11y/no-access-key": "error",
62
+ "jsx-a11y/no-aria-hidden-on-focusable": "off",
63
+ "jsx-a11y/no-autofocus": [
64
+ "error",
65
+ {
66
+ "ignoreNonDOM": true
67
+ }
68
+ ],
69
+ "jsx-a11y/no-distracting-elements": [
70
+ "error",
71
+ {
72
+ "elements": ["marquee", "blink"]
73
+ }
74
+ ],
75
+ "jsx-a11y/no-noninteractive-tabindex": [
76
+ "error",
77
+ {
78
+ "tags": [],
79
+ "roles": ["tabpanel"]
80
+ }
81
+ ],
82
+ "jsx-a11y/no-redundant-roles": [
83
+ "error",
84
+ {
85
+ "nav": ["navigation"]
86
+ }
87
+ ],
88
+ "jsx-a11y/no-static-element-interactions": [
89
+ "error",
90
+ {
91
+ "handlers": [
92
+ "onClick",
93
+ "onMouseDown",
94
+ "onKeyPress",
95
+ "onKeyDown",
96
+ "onKeyUp"
97
+ ]
98
+ }
99
+ ],
100
+ "jsx-a11y/role-has-required-aria-props": "error",
101
+ "jsx-a11y/role-supports-aria-props": "error",
102
+ "jsx-a11y/scope": "error",
103
+ "jsx-a11y/tabindex-no-positive": "error",
104
+ "jsx-a11y/label-has-associated-control": [
105
+ "error",
106
+ {
107
+ "labelComponents": [],
108
+ "labelAttributes": [],
109
+ "controlComponents": [],
110
+ "assert": "both",
111
+ "depth": 10
112
+ }
113
+ ],
114
+ "jsx-a11y/prefer-tag-over-role": "error"
115
+ }
116
+ }
@@ -0,0 +1,33 @@
1
+ export const ESLintPluginA11YDisabled = {
2
+ 'jsx-a11y/alt-text': 'off',
3
+ 'anchor-ambiguous-text': 'off',
4
+ 'jsx-a11y/anchor-has-content': 'off',
5
+ 'jsx-a11y/anchor-is-valid': 'off',
6
+ 'jsx-a11y/aria-activedescendant-has-tabindex': 'off',
7
+ 'jsx-a11y/aria-props': 'off',
8
+ 'jsx-a11y/aria-proptypes': 'off',
9
+ 'jsx-a11y/aria-role': 'off',
10
+ 'jsx-a11y/aria-unsupported-elements': 'off',
11
+ 'jsx-a11y/autocomplete-valid': 'off',
12
+ 'jsx-a11y/click-events-have-key-events': 'off',
13
+ 'jsx-a11y/heading-has-content': 'off',
14
+ 'jsx-a11y/html-has-lang': 'off',
15
+ 'jsx-a11y/iframe-has-title': 'off',
16
+ 'jsx-a11y/img-redundant-alt': 'off',
17
+ 'jsx-a11y/lang': 'off',
18
+ 'jsx-a11y/media-has-caption': 'off',
19
+ 'jsx-a11y/mouse-events-have-key-events': 'off',
20
+ 'jsx-a11y/no-access-key': 'off',
21
+ 'jsx-a11y/no-aria-hidden-on-focusable': 'off',
22
+ 'jsx-a11y/no-autofocus': 'off',
23
+ 'jsx-a11y/no-distracting-elements': 'off',
24
+ 'jsx-a11y/no-noninteractive-tabindex': 'off',
25
+ 'jsx-a11y/no-redundant-roles': 'off',
26
+ 'jsx-a11y/no-static-element-interactions': 'off',
27
+ 'jsx-a11y/role-has-required-aria-props': 'off',
28
+ 'jsx-a11y/role-supports-aria-props': 'off',
29
+ 'jsx-a11y/scope': 'off',
30
+ 'jsx-a11y/tabindex-no-positive': 'off',
31
+ 'jsx-a11y/label-has-associated-control': 'off',
32
+ 'jsx-a11y/prefer-tag-over-role': 'off',
33
+ };
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["react"],
4
+ "rules": {
5
+ "react-hooks/rules-of-hooks": "error",
6
+ "react-hooks/exhaustive-deps": "error"
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ export const ESLintPluginReactHooksDisabled = {
2
+ 'react-hooks/rules-of-hooks': 'off',
3
+ 'react-hooks/exhaustive-deps': 'off',
4
+ };