Skip to content

Commit

Permalink
Merge pull request #11835 from qmonmert/cypresseslint
Browse files Browse the repository at this point in the history
Add eslint-plugin-cypress to the ESLint config
  • Loading branch information
murdos authored Jan 31, 2025
2 parents e4e6fad + bd0c859 commit 19d63ba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import js from '@eslint/js';
import prettier from 'eslint-config-prettier';
import cypress from 'eslint-plugin-cypress/flat';
import vue from 'eslint-plugin-vue';
import globals from 'globals';
import typescript from 'typescript-eslint';
Expand Down Expand Up @@ -32,5 +33,29 @@ export default typescript.config(
'@typescript-eslint/no-empty-object-type': 'off',
},
},
{
files: ['src/test/webapp/component/integration/**/*.ts'],
extends: [...typescript.configs.recommendedTypeChecked, cypress.configs.recommended],
languageOptions: {
parserOptions: {
project: ['src/test/webapp/component/tsconfig.json'],
},
},
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
},
},
{
files: ['src/test/webapp/e2e/integration/**/*.ts'],
extends: [...typescript.configs.recommendedTypeChecked, cypress.configs.recommended],
languageOptions: {
parserOptions: {
project: ['src/test/webapp/e2e/tsconfig.json'],
},
},
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
},
},
prettier,
);

0 comments on commit 19d63ba

Please sign in to comment.