Skip to content

Commit

Permalink
Add file watcher configuration (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Oct 3, 2021
1 parent 815dcf1 commit 310a198
Showing 1 changed file with 35 additions and 27 deletions.
62 changes: 35 additions & 27 deletions LSP-eslint.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
{
"command": ["${node_bin}", "${server_path}", "--stdio"],
"languages": [
{
"languageId": "javascriptreact",
"document_selector": "source.jsx | source.js.jsx | source.js.react",
},
{
"languageId": "javascript",
"document_selector": "source.js",
},
{
"languageId": "typescriptreact",
"document_selector": "source.tsx | source.ts.react",
},
{
"languageId": "typescript",
"document_selector": "source.ts",
},
{
"languageId": "vue",
"document_selector": "text.html.vue",
},
{
"languageId": "html",
"document_selector": "text.html.basic",
},
],
"settings": {
"codeAction.disableRuleComment": {
// Show the disable code actions.
Expand Down Expand Up @@ -88,10 +61,45 @@
// NOTE that the `{ "pattern": glob pattern }` variant is not supported in LSP-eslint.
// "workingDirectories": null
},
// File watching functionality only works with "LSP-file-watcher-chokidar" package installed.
"file_watcher": {
"patterns": [
"**/.eslintr{c.js,c.yaml,c.yml,c,c.json}",
"**/.eslintignore",
"**/package.json",
]
},
"command": ["${node_bin}", "${server_path}", "--stdio"],
"env": {
// Enables ESLint debug mode
// "DEBUG": "eslint:*,-eslint:code-path",
// The value of NODE_ENV to use when running eslint tasks.
// "NODE_ENV": "production",
},
"languages": [
{
"languageId": "javascriptreact",
"document_selector": "source.jsx | source.js.jsx | source.js.react",
},
{
"languageId": "javascript",
"document_selector": "source.js",
},
{
"languageId": "typescriptreact",
"document_selector": "source.tsx | source.ts.react",
},
{
"languageId": "typescript",
"document_selector": "source.ts",
},
{
"languageId": "vue",
"document_selector": "text.html.vue",
},
{
"languageId": "html",
"document_selector": "text.html.basic",
},
],
}

0 comments on commit 310a198

Please sign in to comment.