Skip to content

Commit c2ae0f3

Browse files
committed
revert export default
1 parent 4d107df commit c2ae0f3

37 files changed

+37
-37
lines changed

scripts/boilerplate/rule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const errorMessage = '';
1515
1616
const schema = generateObjSchema();
1717
18-
export default {
18+
module.exports = {
1919
meta: {
2020
docs: {},
2121
schema: [schema],

src/rules/accessible-emoji.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const errorMessage = 'Emojis should be wrapped in <span>, have role="img", and h
1616

1717
const schema = generateObjSchema();
1818

19-
export default {
19+
module.exports = {
2020
meta: {
2121
docs: {
2222
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/accessible-emoji.md',

src/rules/alt-text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const ruleByElement = {
192192
},
193193
};
194194

195-
export default {
195+
module.exports = {
196196
meta: {
197197
docs: {
198198
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/alt-text.md',

src/rules/anchor-has-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const errorMessage = 'Anchors must have content and the content must be accessib
1515

1616
const schema = generateObjSchema({ components: arraySchema });
1717

18-
export default {
18+
module.exports = {
1919
meta: {
2020
docs: {
2121
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/anchor-has-content.md',

src/rules/anchor-is-valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const schema = generateObjSchema({
2727
aspects: enumArraySchema(allAspects, 1),
2828
});
2929

30-
export default ({
30+
module.exports = ({
3131
meta: {
3232
docs: {
3333
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/anchor-is-valid.md',

src/rules/aria-activedescendant-has-tabindex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const schema = generateObjSchema();
1919

2020
const domElements = [...dom.keys()];
2121

22-
export default {
22+
module.exports = {
2323
meta: {
2424
docs: {
2525
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-activedescendant-has-tabindex.md',

src/rules/aria-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const errorMessage = (name) => {
2727

2828
const schema = generateObjSchema();
2929

30-
export default {
30+
module.exports = {
3131
meta: {
3232
docs: {
3333
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-props.md',

src/rules/aria-proptypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const validityCheck = (value, expectedType, permittedValues) => {
6262

6363
const schema = generateObjSchema();
6464

65-
export default {
65+
module.exports = {
6666
validityCheck,
6767
meta: {
6868
docs: {

src/rules/aria-role.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const schema = generateObjSchema({
2020
},
2121
});
2222

23-
export default {
23+
module.exports = {
2424
meta: {
2525
docs: {
2626
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-role.md',

src/rules/aria-unsupported-elements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Try removing the prop '${invalidProp}'.`
2222

2323
const schema = generateObjSchema();
2424

25-
export default {
25+
module.exports = {
2626
meta: {
2727
docs: {
2828
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-unsupported-elements.md',

0 commit comments

Comments
 (0)