Skip to content

Commit adef4c9

Browse files
authored
fix(e2e-nightwatch): fix eslint config generation (#5148)
Commit 1b64ff8 introduced a nested if in `_eslintrc.js` with the same condition than the wrapping one. This changes the condition to check for TypeScript instead.
1 parent c5bf5b1 commit adef4c9

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-e2e-nightwatch/generator/template/tests/e2e/_eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%_ if (hasESLint) { _%>
22
module.exports = {
33
rules: {
4-
<%_ if (hasESLint) { _%>
4+
<%_ if (hasTS) { _%>
55
'@typescript-eslint/no-var-requires': 'off',
66
<%_ } _%>
77
'no-unused-expressions': 'off'

0 commit comments

Comments
 (0)