Skip to content

Commit

Permalink
fix(.eslintrc.js): conditionally use typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilnayyar002 committed Jan 26, 2022
1 parent 19c257c commit 57f479f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
},
ignorePatterns: ["/**/*.*", "!src/**/*.*"],
overrides: [
{
wmConfig.typescript && {
files: wmConfig.typescriptExts.map((t) => "src/**/*" + t),
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
Expand All @@ -44,5 +44,5 @@ module.exports = {
"no-unused-vars": "off",
},
},
],
].filter(Boolean),
};

0 comments on commit 57f479f

Please sign in to comment.