Skip to content

Commit 50ffda4

Browse files
authored
Update settings with comments and add some default-disabled ENVs (sublimelsp#31)
1 parent 9122596 commit 50ffda4

File tree

1 file changed

+39
-20
lines changed

1 file changed

+39
-20
lines changed

LSP-eslint.sublime-settings

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,40 @@
1414
},
1515
],
1616
"settings": {
17-
"validate": "on",
18-
"packageManager": "npm",
19-
"options": {},
20-
"run": "onType",
21-
"nodePath": null,
22-
"format": false,
23-
"quiet": false,
24-
"onIgnoredFiles": "off",
25-
"codeAction": {
26-
"disableRuleComment": {
27-
"enable": true,
28-
"location": "separateLine"
29-
},
30-
"showDocumentation": {
31-
"enable": true
32-
}
33-
},
34-
"codeActionOnSave": {
17+
"codeAction.disableRuleComment": {
18+
// Show the disable code actions.
3519
"enable": true,
36-
"mode": "all"
20+
// Configure the disable rule code action to insert the comment on the `sameLine` or `separateLine`.
21+
"location": "separateLine"
3722
},
23+
"codeAction.showDocumentation": {
24+
// Show the documentation code actions.
25+
"enable": true
26+
},
27+
"codeActionOnSave.enable": true,
28+
// Specifies the code action mode. Possible values are 'all' and 'problems'.
29+
// possible values: all, problems
30+
"codeActionsOnSave.mode": "all",
31+
// Deprecated. Recommended to use the global LSP option `lsp_code_actions_on_save` with the.
32+
// `"source.fixAll.eslint": true` key instead.
33+
"format": false,
34+
// A path added to NODE_PATH when resolving the eslint module (auto-detected by default).
35+
"nodePath": null,
36+
// Whether ESLint should issue a warning on ignored files.
37+
// Possible values: `warn`, `off`
38+
"onIgnoredFiles": "off",
39+
// The eslint options object to provide args normally passed to eslint when
40+
// executed from a command line (see https://eslint.org/docs/developer-guide/nodejs-api#cliengine).
41+
"options": {},
42+
// The package manager you use to install node modules.
43+
// Possible values: `npm`, `yarn`, `pnpm`
44+
"packageManager": "npm",
45+
// Turns on quiet mode, which ignores warnings.
46+
"quiet": false,
47+
// Run the linter on save or on type.
48+
// Possible values: `onSave`, `onType`
49+
"run": "onType",
50+
"validate": "on",
3851
// An optional list of working directories or a setting on how those are auto-resolved.
3952
//
4053
// This setting will normally only be set per-project to provide a list of working
@@ -45,5 +58,11 @@
4558
//
4659
// NOTE that the `{ "pattern": glob pattern }` variant is not supported in LSP-eslint.
4760
"workingDirectories": null
48-
}
61+
},
62+
"env": {
63+
// Enables ESLint debug mode
64+
// "DEBUG": "eslint:*,-eslint:code-path",
65+
// The value of NODE_ENV to use when running eslint tasks.
66+
// "NODE_ENV": "production",
67+
},
4968
}

0 commit comments

Comments
 (0)