From 3009dfdd24243c0e9ed4aa03d3d24554b4d3f37f Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 24 Dec 2021 16:17:24 +0800 Subject: [PATCH] chore: add eslint comments to avoid errors in the future --- playground/jsx-pinia-with-tests/cypress/plugins/index.js | 2 ++ playground/jsx-router-pinia-with-tests/cypress/plugins/index.js | 2 ++ playground/jsx-router-with-tests/cypress/plugins/index.js | 2 ++ playground/jsx-with-tests/cypress/plugins/index.js | 2 ++ playground/pinia-with-tests/cypress/plugins/index.js | 2 ++ playground/router-pinia-with-tests/cypress/plugins/index.js | 2 ++ playground/router-with-tests/cypress/plugins/index.js | 2 ++ .../typescript-jsx-pinia-with-tests/cypress/plugins/index.ts | 2 ++ .../cypress/plugins/index.ts | 2 ++ .../typescript-jsx-router-with-tests/cypress/plugins/index.ts | 2 ++ playground/typescript-jsx-with-tests/cypress/plugins/index.ts | 2 ++ playground/typescript-pinia-with-tests/cypress/plugins/index.ts | 2 ++ .../typescript-router-pinia-with-tests/cypress/plugins/index.ts | 2 ++ .../typescript-router-with-tests/cypress/plugins/index.ts | 2 ++ playground/typescript-with-tests/cypress/plugins/index.ts | 2 ++ playground/with-tests/cypress/plugins/index.js | 2 ++ template/config/cypress/cypress/plugins/index.js | 2 ++ 17 files changed, 34 insertions(+) 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 -- 2.39.5