]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: add cypress support folder to eslint overrides
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 5 Dec 2023 17:33:40 +0000 (01:33 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 5 Dec 2023 17:33:40 +0000 (01:33 +0800)
Fixes #195

utils/renderEslint.ts

index ab8b59bda2ad71c65e8d56eb93133a36744b8bff..86a7fbb5cbe0141326b6e9a2f16777199bee0516 100644 (file)
@@ -24,9 +24,10 @@ export default function renderEslint(
         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}',
+              'cypress/support/**/*.{js,ts,jsx,tsx}'
             ]
-          : ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'],
+          : ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}', 'cypress/support/**/*.{js,ts,jsx,tsx}'],
         extends: ['plugin:cypress/recommended']
       }
     ]