diff --git a/packages/eslint-config-airbnb/rules/react-a11y.js b/packages/eslint-config-airbnb/rules/react-a11y.js index 8bc1426f..77fcb93d 100644 --- a/packages/eslint-config-airbnb/rules/react-a11y.js +++ b/packages/eslint-config-airbnb/rules/react-a11y.js @@ -3,9 +3,13 @@ module.exports = { 'jsx-a11y', 'react' ], - ecmaFeatures: { - jsx: true + + parserOptions: { + ecmaFeatures: { + jsx: true, + }, }, + rules: { // Enforce that anchors have content // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md diff --git a/packages/eslint-config-airbnb/rules/react.js b/packages/eslint-config-airbnb/rules/react.js index 0b159de8..4392d678 100644 --- a/packages/eslint-config-airbnb/rules/react.js +++ b/packages/eslint-config-airbnb/rules/react.js @@ -2,14 +2,12 @@ module.exports = { plugins: [ 'react', ], + parserOptions: { ecmaFeatures: { jsx: true, }, }, - ecmaFeatures: { - jsx: true, - }, // View link below for react rules documentation // https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules