-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
Description
When I run eslint I get the Parsing Error: 'Unexpected Token' when including pluginCypress. When I remove pluginCypress the error goes away. Please let me know if it's something obvious or if I need to post another config file (tsconfig.json, vite.config.mts, cypress.config.ts, etc). Thanks!
package.json (eslint deps)
"@eslint/js": "9.11.1",
"@types/eslint__js": "8.42.3",
"@typescript-eslint/eslint-plugin": "8.7.0",
"@vue/eslint-config-typescript": "13.0.0",
"eslint": "9.11.1",
"eslint-plugin-cypress": "3.5.0",
"eslint-plugin-vue": "9.28.0",
"typescript-eslint": "8.7.0",
eslint.config.mjs
// @ts-check
import eslint from '@eslint/js';
import pluginCypress from 'eslint-plugin-cypress/flat'
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
//...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.recommendedTypeChecked.map((config) => ({
files: ['**/*.ts'],
...config,
...pluginCypress.configs.recommended,
...{
languageOptions: {
ecmaVersion: 'latest',
},
},
}))
);