]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: fix Cypress ESLint overrides glob pattern
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 18 Oct 2022 07:14:11 +0000 (15:14 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 18 Oct 2022 07:14:11 +0000 (15:14 +0800)
Fixes #169

utils/renderEslint.ts

index a47743538ef186808ba0ee323fe21d23d1eb4625..bef8278cfebb6f86b829b88b7fc54b978eba3e24 100644 (file)
@@ -20,8 +20,11 @@ export default function renderEslint(
     additionalConfig.overrides = [
       {
         files: needsCypressCT
-          ? ['**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', 'cypress/e2e/**.{cy,spec}.{js,ts,jsx,tsx}']
-          : ['cypress/e2e/**.{cy,spec}.{js,ts,jsx,tsx}'],
+          ? [
+              '**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
+              'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'
+            ]
+          : ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'],
         extends: ['plugin:cypress/recommended']
       }
     ]