From: Haoqun Jiang Date: Fri, 24 Dec 2021 08:17:24 +0000 (+0800) Subject: chore: add eslint comments to avoid errors in the future X-Git-Tag: v3.0.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3009dfdd24243c0e9ed4aa03d3d24554b4d3f37f;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: add eslint comments to avoid errors in the future --- diff --git a/playground/jsx-pinia-with-tests/cypress/plugins/index.js b/playground/jsx-pinia-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/jsx-pinia-with-tests/cypress/plugins/index.js +++ b/playground/jsx-pinia-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/jsx-router-pinia-with-tests/cypress/plugins/index.js b/playground/jsx-router-pinia-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/jsx-router-pinia-with-tests/cypress/plugins/index.js +++ b/playground/jsx-router-pinia-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/jsx-router-with-tests/cypress/plugins/index.js b/playground/jsx-router-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/jsx-router-with-tests/cypress/plugins/index.js +++ b/playground/jsx-router-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/jsx-with-tests/cypress/plugins/index.js b/playground/jsx-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/jsx-with-tests/cypress/plugins/index.js +++ b/playground/jsx-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/pinia-with-tests/cypress/plugins/index.js b/playground/pinia-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/pinia-with-tests/cypress/plugins/index.js +++ b/playground/pinia-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/router-pinia-with-tests/cypress/plugins/index.js b/playground/router-pinia-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/router-pinia-with-tests/cypress/plugins/index.js +++ b/playground/router-pinia-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/router-with-tests/cypress/plugins/index.js b/playground/router-with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/router-with-tests/cypress/plugins/index.js +++ b/playground/router-with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-jsx-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-pinia-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-jsx-pinia-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-jsx-pinia-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-jsx-router-pinia-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-jsx-router-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-jsx-with-tests/cypress/plugins/index.ts b/playground/typescript-jsx-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-jsx-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-jsx-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-pinia-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-pinia-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-pinia-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts b/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-router-pinia-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-router-with-tests/cypress/plugins/index.ts b/playground/typescript-router-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-router-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-router-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/typescript-with-tests/cypress/plugins/index.ts b/playground/typescript-with-tests/cypress/plugins/index.ts index ad2e351d..932b68e3 100644 --- a/playground/typescript-with-tests/cypress/plugins/index.ts +++ b/playground/typescript-with-tests/cypress/plugins/index.ts @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/playground/with-tests/cypress/plugins/index.js b/playground/with-tests/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/playground/with-tests/cypress/plugins/index.js +++ b/playground/with-tests/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins diff --git a/template/config/cypress/cypress/plugins/index.js b/template/config/cypress/cypress/plugins/index.js index ad2e351d..932b68e3 100644 --- a/template/config/cypress/cypress/plugins/index.js +++ b/template/config/cypress/cypress/plugins/index.js @@ -1,3 +1,5 @@ +/* eslint-env node */ +/* eslint-disable @typescript-eslint/no-var-requires */ /// // *********************************************************** // This example plugins/index.js can be used to load plugins