Skip to content

Commit a49a8fe

Browse files
authored
Fix languageId's sent to the server (sublimelsp#27)
- Also enable for typescript by default Resolves sublimelsp#23
1 parent 2ead971 commit a49a8fe

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

LSP-eslint.sublime-settings

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"languages": [
33
{
4-
"languageId": "eslint",
5-
"scopes": ["source.js", "text.html.vue"],
6-
"syntaxes": [
7-
"Packages/Babel/JavaScript (Babel).sublime-syntax",
8-
"Packages/JavaScript/JavaScript.sublime-syntax",
9-
"Packages/JavaScript/JavaScript.sublime-syntax",
10-
"Packages/User/JS Custom/Syntaxes/React.sublime-syntax",
11-
"Packages/Vue Syntax Highlight/Vue Component.sublime-syntax",
12-
],
4+
"languageId": "javascript",
5+
"document_selector": "source.js",
6+
},
7+
{
8+
"languageId": "typescript",
9+
"document_selector": "source.ts",
10+
},
11+
{
12+
"languageId": "vue",
13+
"document_selector": "text.html.vue",
1314
},
1415
],
1516
"settings": {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ ESLint configuration options. Refer to [documentation for VSCode extension](http
2929

3030
Q: How to enable linting of Typescript code?
3131

32-
A: Add `"source.ts"` entry to `scopes` option and `"Packages/TypeScript Syntax/TypeScript.tmLanguage"` entry to `syntaxes` option. It's also necessary to have appropriate ESLint configuration in your project. See https://github.com/typescript-eslint/typescript-eslint for more information.
32+
A: Make sure that eslint configuration in your project has `typescript-eslint` plugin configured. See https://github.com/typescript-eslint/typescript-eslint for more information.

0 commit comments

Comments
 (0)