Skip to content

Commit 2d735f1

Browse files
authored
eslint: Use import/typescript config (#1696)
Use [eslint-plugin-import's typescript config](https://github.com/import-js/eslint-plugin-import/blob/main/config/typescript.js) per [the recommendation in their readme](https://github.com/import-js/eslint-plugin-import#typescript). ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 5ec9972 commit 2d735f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"extends": [
55
"eslint:recommended",
66
"plugin:@typescript-eslint/recommended",
7+
"plugin:import/typescript",
78
"prettier"
89
],
910
"parserOptions": {
@@ -68,9 +69,6 @@
6869
}
6970
],
7071
"settings": {
71-
"import/parsers": {
72-
"@typescript-eslint/parser": [".ts", ".tsx"]
73-
},
7472
"import/resolver": {
7573
"typescript": {
7674
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`

0 commit comments

Comments
 (0)