Skip to content

Commit 55451ab

Browse files
author
Josh Goldberg
authored
Added obsolete converter for react-a11y-no-onchange (#1199)
1 parent 36ca717 commit 55451ab

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/converters/lintConfigs/rules/ruleConverters.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ import { convertReactA11yEventHasRole } from "./ruleConverters/react-a11y-event-
262262
import { convertReactA11yImageButtonHasAlt } from "./ruleConverters/react-a11y-image-button-has-alt";
263263
import { convertReactA11yImgHasAlt } from "./ruleConverters/react-a11y-img-has-alt";
264264
import { convertReactA11yLang } from "./ruleConverters/react-a11y-lang";
265+
import { convertReactA11yNoOnchange } from "./ruleConverters/react-a11y-no-onchange";
265266
import { convertReactA11yProps } from "./ruleConverters/react-a11y-props";
266267
import { convertReactA11yProptypes } from "./ruleConverters/react-a11y-proptypes";
267268
import { convertReactA11yRole } from "./ruleConverters/react-a11y-role";
@@ -513,6 +514,7 @@ export const ruleConverters = new Map([
513514
["react-a11y-image-button-has-alt", convertReactA11yImageButtonHasAlt],
514515
["react-a11y-img-has-alt", convertReactA11yImgHasAlt],
515516
["react-a11y-lang", convertReactA11yLang],
517+
["react-a11y-no-onchange", convertReactA11yNoOnchange],
516518
["react-a11y-props", convertReactA11yProps],
517519
["react-a11y-proptypes", convertReactA11yProptypes],
518520
["react-a11y-role-has-required-aria-props", convertReactA11yRoleHasRequiredAriaProps],
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { RuleConverter } from "../ruleConverter";
2+
3+
export const convertReactA11yNoOnchange: RuleConverter = () => {
4+
return {};
5+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { convertReactA11yNoOnchange } from "../react-a11y-no-onchange";
2+
3+
describe(convertReactA11yNoOnchange, () => {
4+
test("conversion without arguments", () => {
5+
const result = convertReactA11yNoOnchange({
6+
ruleArguments: [],
7+
});
8+
9+
expect(result).toEqual({});
10+
});
11+
});

0 commit comments

Comments
 (0)