Skip to content

Commit 8a4a737

Browse files
committed
Add the jsx-a11y/lang rule to the recommended and strict presets
1 parent 7bcea20 commit 8a4a737

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Rule | Recommended | Strict
150150
[img-redundant-alt](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md) | error | error
151151
[interactive-supports-focus](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md) | error | error
152152
[label-has-associated-control](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md) | error | error
153+
[lang](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md) | error | error
153154
[media-has-caption](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md) | error | error
154155
[mouse-events-have-key-events](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md) | error | error
155156
[no-access-key](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md) | error | error

src/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ module.exports = {
110110
],
111111
'jsx-a11y/label-has-associated-control': 'error',
112112
'jsx-a11y/label-has-for': 'off',
113+
'jsx-a11y/lang': 'error',
113114
'jsx-a11y/media-has-caption': 'error',
114115
'jsx-a11y/mouse-events-have-key-events': 'error',
115116
'jsx-a11y/no-access-key': 'error',
@@ -267,6 +268,7 @@ module.exports = {
267268
],
268269
'jsx-a11y/label-has-for': 'error',
269270
'jsx-a11y/label-has-associated-control': 'error',
271+
'jsx-a11y/lang': 'error',
270272
'jsx-a11y/media-has-caption': 'error',
271273
'jsx-a11y/mouse-events-have-key-events': 'error',
272274
'jsx-a11y/no-access-key': 'error',

0 commit comments

Comments
 (0)