diff options
| author | Joshua May <git@hotdog.horse> | 2024-02-11 00:29:44 +0100 |
|---|---|---|
| committer | Joshua May <git@hotdog.horse> | 2024-02-11 00:29:44 +0100 |
| commit | 25f595414ea51388aacca7269f9949ffe6db1151 (patch) | |
| tree | a57f1587859297c73bb5d9d8e747b950b7bce018 /src | |
| parent | 2e3e96c5cdfa75bf696f4f524dbae8e02de13684 (diff) | |
| download | slskd-25f595414ea51388aacca7269f9949ffe6db1151.tar.gz | |
Add jsx parsing
Diffstat (limited to 'src')
| -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'], |
