Skip to content

Commit

Permalink
feat: conditionally add jsx-a11y to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
redwoodjsbot committed Feb 24, 2021
1 parent 4f795b5 commit f7ac52a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// This is the ESLint configuation used by Redwood projects.
import { getConfig } from '@redwoodjs/internal'

const config = getConfig()

module.exports = {
extends: './shared.js',
extends: [
'./shared.js',
config.web.a11y ? 'plugin:jsx-a11y/recommended' : undefined,
],

plugins: ['@redwoodjs/eslint-plugin-redwood'],
overrides: [
Expand Down

0 comments on commit f7ac52a

Please sign in to comment.