Skip to content

Commit 2bbe002

Browse files
committed
Add recommended rules config.
1 parent e45c6b0 commit 2bbe002

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ module.exports = {
1717
ecmaFeatures: {
1818
jsx: true
1919
}
20+
},
21+
rules: {
22+
"jsx-a11y/img-uses-alt": 2,
23+
"jsx-a11y/redundant-alt": 2,
24+
"jsx-a11y/onclick-uses-role": 2,
25+
"jsx-a11y/mouse-events-map-to-key-events": 2,
26+
"jsx-a11y/use-onblur-not-onchange": 2,
27+
"jsx-a11y/no-access-key": 2,
28+
"jsx-a11y/use-label-for": 2,
29+
"jsx-a11y/no-hash-href": 2
2030
}
2131
}
2232
}

tests/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ describe('all rule files should be exported by the plugin', () => {
2121
});
2222
});
2323

24-
// describe('configurations', function() {
25-
// it('should export a \'recommended\' configuration', function() {
26-
// assert(plugin.configs.recommended);
27-
// });
28-
// });
24+
describe('configurations', function() {
25+
it('should export a \'recommended\' configuration', function() {
26+
assert(plugin.configs.recommended);
27+
});
28+
});

0 commit comments

Comments
 (0)