fix(e2e-nightwatch): fix eslint config generation (#5148)

Commit 1b64ff8464 introduced a nested if in `_eslintrc.js` with the same condition than the wrapping one. This changes the condition to check for TypeScript instead.
This commit is contained in:
Cédric Exbrayat
2020-02-05 15:55:19 +01:00
committed by GitHub
parent c5bf5b13a5
commit adef4c9729

View File

@@ -1,7 +1,7 @@
<%_ if (hasESLint) { _%>
module.exports = {
rules: {
<%_ if (hasESLint) { _%>
<%_ if (hasTS) { _%>
'@typescript-eslint/no-var-requires': 'off',
<%_ } _%>
'no-unused-expressions': 'off'