You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/oxlint/src/snapshots/_-c fixtures__print_config__ban_rules__eslintrc.json -A all -D eqeqeq --print-config@oxlint.snap
Copy file name to clipboardExpand all lines: crates/oxc_linter/src/snapshots/schema_json.snap
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,8 @@ expression: json
83
83
"default": {
84
84
"jsx-a11y": {
85
85
"polymorphicPropName": null,
86
-
"components": {}
86
+
"components": {},
87
+
"attributes": {}
87
88
},
88
89
"next": {
89
90
"rootDir": []
@@ -256,6 +257,17 @@ expression: json
256
257
"description": "Configure JSX A11y plugin rules.\n\nSee\n[eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#configurations)'s\nconfiguration for a full reference.",
257
258
"type": "object",
258
259
"properties": {
260
+
"attributes": {
261
+
"description": "Map of attribute names to their DOM equivalents.\nThis is useful for non-React frameworks that use different attribute names.\n\nExample:\n\n```json\n{\n\"settings\": {\n\"jsx-a11y\": {\n\"attributes\": {\n\"for\": [\"htmlFor\", \"for\"]\n}\n}\n}\n}\n```",
262
+
"default": {},
263
+
"type": "object",
264
+
"additionalProperties": {
265
+
"type": "array",
266
+
"items": {
267
+
"type": "string"
268
+
}
269
+
}
270
+
},
259
271
"components": {
260
272
"description": "To have your custom components be checked as DOM elements, you can\nprovide a mapping of your component names to the DOM element name.\n\nExample:\n\n```json\n{\n\"settings\": {\n\"jsx-a11y\": {\n\"components\": {\n\"Link\": \"a\",\n\"IconButton\": \"button\"\n}\n}\n}\n}\n```",
Copy file name to clipboardExpand all lines: npm/oxlint/configuration_schema.json
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,8 @@
79
79
"default": {
80
80
"jsx-a11y": {
81
81
"polymorphicPropName": null,
82
-
"components": {}
82
+
"components": {},
83
+
"attributes": {}
83
84
},
84
85
"next": {
85
86
"rootDir": []
@@ -252,6 +253,17 @@
252
253
"description": "Configure JSX A11y plugin rules.\n\nSee\n[eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#configurations)'s\nconfiguration for a full reference.",
253
254
"type": "object",
254
255
"properties": {
256
+
"attributes": {
257
+
"description": "Map of attribute names to their DOM equivalents.\nThis is useful for non-React frameworks that use different attribute names.\n\nExample:\n\n```json\n{\n\"settings\": {\n\"jsx-a11y\": {\n\"attributes\": {\n\"for\": [\"htmlFor\", \"for\"]\n}\n}\n}\n}\n```",
258
+
"default": {},
259
+
"type": "object",
260
+
"additionalProperties": {
261
+
"type": "array",
262
+
"items": {
263
+
"type": "string"
264
+
}
265
+
}
266
+
},
255
267
"components": {
256
268
"description": "To have your custom components be checked as DOM elements, you can\nprovide a mapping of your component names to the DOM element name.\n\nExample:\n\n```json\n{\n\"settings\": {\n\"jsx-a11y\": {\n\"components\": {\n\"Link\": \"a\",\n\"IconButton\": \"button\"\n}\n}\n}\n}\n```",
0 commit comments