From 5bb927c379f261e8837ecafac7cb1807f21d6cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Wed, 5 Feb 2020 15:55:19 +0100 Subject: [PATCH] fix(e2e-nightwatch): fix eslint config generation (#5148) Commit 1b64ff8464c317f8d5616626bf483f582c2e01c3 introduced a nested if in `_eslintrc.js` with the same condition than the wrapping one. This changes the condition to check for TypeScript instead. --- .../generator/template/tests/e2e/_eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js b/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js index 5dbbfae554..4f7e990821 100644 --- a/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js +++ b/packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js @@ -1,7 +1,7 @@ <%_ if (hasESLint) { _%> module.exports = { rules: { - <%_ if (hasESLint) { _%> + <%_ if (hasTS) { _%> '@typescript-eslint/no-var-requires': 'off', <%_ } _%> 'no-unused-expressions': 'off'