From a8c2e610fd52cc0a11d1d3b39cafaee4c956ab9d Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 24 Apr 2017 20:59:22 -0500 Subject: [PATCH] some other things --- .gitignore | 1 + cypress-final/.eslintrc | 3 +++ cypress/.eslintrc | 2 +- other/templates/cypress/.eslintrc | 3 +++ package-scripts.js | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) 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: {