diff --git a/.gitignore b/.gitignore index 809700d7..ea741a11 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ cypress/videos cypress/screenshots dist .opt-in +.eslintcache diff --git a/cypress-final/.eslintrc b/cypress-final/.eslintrc index 8adff10e..97ccf2eb 100644 --- a/cypress-final/.eslintrc +++ b/cypress-final/.eslintrc @@ -3,6 +3,9 @@ "cy": false, "Cypress": false, }, + "env": { + "mocha": true, + }, "rules": { "import/no-extraneous-dependencies": "off", "import/no-unresolved": "off", diff --git a/cypress/.eslintrc b/cypress/.eslintrc index b7b23c95..793ae03c 100644 --- a/cypress/.eslintrc +++ b/cypress/.eslintrc @@ -5,5 +5,5 @@ }, "env": { "mocha": true, - } + }, } diff --git a/other/templates/cypress/.eslintrc b/other/templates/cypress/.eslintrc index 7f80160a..7ad832a2 100644 --- a/other/templates/cypress/.eslintrc +++ b/other/templates/cypress/.eslintrc @@ -3,6 +3,9 @@ "cy": false, "Cypress": false, }, + "env": { + "mocha": true, + }, // FINAL_START "rules": { "import/no-extraneous-dependencies": "off", diff --git a/package-scripts.js b/package-scripts.js index 634af543..03515a29 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -127,7 +127,7 @@ module.exports = { }, lint: { hiddenFromHelp, - script: 'eslint .', + script: 'eslint . --cache', description: 'lint project files', }, format: {