Skip to content

Commit

Permalink
fix(linter): Re-enable linting of JS files in VSCode (#367)
Browse files Browse the repository at this point in the history
Fixes the following "Problem" listed by Visual Studio code, when opening a JS file:

> Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
> The file does not match your project config: test/unit/notif-tests.js.
> The file must be included in at least one of the projects provided.
  • Loading branch information
adrienjoly committed Sep 7, 2020
1 parent 2248962 commit 469e9aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"plugins": ["prettier", "@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json",
"project": "tsconfig.json",
"ecmaVersion": 2019
},
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"include": ["node_modules/cypress", "cypress/*/*.ts", "cypress/*/*.d.ts"]
"include": ["**/*.ts", "**/*.d.ts", "**/*.js"]
}

0 comments on commit 469e9aa

Please sign in to comment.