Skip to content

Commit a88534c

Browse files
committed
Fix ts eslint parser misconfiguration
1 parent 731c1b4 commit a88534c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import js from "@eslint/js";
22
import prettierConfig from "eslint-config-prettier";
33
import * as typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
4+
import tsParser from "@typescript-eslint/parser";
45
import sonarjs from "eslint-plugin-sonarjs";
56

67
export default [
@@ -16,7 +17,7 @@ export default [
1617
es6: true,
1718
node: true,
1819
},
19-
parser: typescriptEslintPlugin.parser,
20+
parser: tsParser,
2021
parserOptions: {
2122
ecmaVersion: 2018,
2223
sourceType: "module",

0 commit comments

Comments
 (0)