diff --git a/.eslintrc.json b/.eslintrc.json index af1b97849b..7361034a43 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -104,7 +104,7 @@ "allowTernary": true } ], - "prefer-const": "off", // todo: re-enable & fix errors (more strict than it used to be in TSLint) + "prefer-const": "error", "prefer-spread": "off", "no-underscore-dangle": "off", @@ -213,6 +213,21 @@ ] } }, + { + "files": [ + "*.spec.ts" + ], + "parserOptions": { + "project": [ + "./tsconfig.json", + "./cypress/tsconfig.json" + ], + "createDefaultProgram": true + }, + "rules": { + "prefer-const": "off" + } + }, { "files": [ "*.html"