Skip to content

Commit

Permalink
e2e: fix migrate eslint config
Browse files Browse the repository at this point in the history
The . after the eslint command is important, else it lints nothing.
Ignore the data directory explicitly.
Add eslint-parser and set languageOptions.ecmaVersion to 2022,
else the import.meta above leads to a lint error.

Issue: ecamp#5282
  • Loading branch information
BacLuc committed Aug 13, 2024
1 parent b870e0a commit c834fe1
Show file tree
Hide file tree
Showing 3 changed files with 762 additions and 2 deletions.
9 changes: 9 additions & 0 deletions e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export default [
'plugin:cypress/recommended',
'plugin:prettier/recommended'
),
{
ignores: ['data/'],
},

includeIgnoreFile(gitignorePath),

Expand All @@ -29,6 +32,12 @@ export default [
...globals.node,
...globals.mocha,
},

ecmaVersion: 2022,

parserOptions: {
parser: '@babel/eslint-parser',
},
},

rules: {
Expand Down
Loading

0 comments on commit c834fe1

Please sign in to comment.