diff options
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/.eslintrc.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/web/.eslintrc.js b/src/web/.eslintrc.js index e72aed06..e1023708 100644 --- a/src/web/.eslintrc.js +++ b/src/web/.eslintrc.js @@ -1,11 +1,25 @@ /** @type {import('eslint').Linter.Config} */ module.exports = { extends: ['canonical/auto', 'canonical/browser', 'canonical/node'], - ignorePatterns: ['build'], + ignorePatterns: ['build', 'node_modules', 'package-lock.json'], overrides: [ { - extends: ['canonical/jsx-a11y'], - files: '*.jsx', + extends: [ + 'canonical', + 'canonical/regexp', + 'canonical/jsdoc', + 'canonical/jsx-a11y', + 'canonical/react', + 'canonical/prettier', + ], + files: ['*.jsx'], + parserOptions: { + babelOptions: { + parserOpts: { + plugins: ['jsx'], + }, + }, + }, }, { extends: ['canonical/jest'], |
