ESlint#
Server#
For more information about the LSP server, check eslint.
Installation#
This Server supports automatic install.
Install this language server with M-xlsp-install-server
RETeslint
RET.
Debugger: N/A#
Available configurations#
lsp-eslint-unzipped-path
#
Default: ~/.emacs.d/.cache/lsp/eslint/unzipped
The path to the file in which ‘eslint’ will be stored.
lsp-eslint-server-command
#
Default: (node ~/server/out/eslintServer.js --stdio)
Command to start eslint server.
lsp-eslint-enable
#
Default: t
Controls whether eslint is enabled for JavaScript files or not.
lsp-eslint-package-manager
#
Default: npm
The package manager you use to install node modules.
lsp-eslint-format
#
Default: t
Whether to perform format.
lsp-eslint-node-path
#
Default: nil
A path added to NODE_PATH when resolving the eslint module.
lsp-eslint-node
#
Default: node
Path to nodejs.
lsp-eslint-options
#
Default: nil
The eslint options object to provide args normally passed to eslint when executed from a command line (see http://eslint.org/docs/developer-guide/nodejs-api#cliengine).
lsp-eslint-trace-server
#
Default: off
Traces the communication between VSCode and the eslint linter service.
lsp-eslint-run
#
Default: onType
Run the linter on save (onSave) or on type (onType)
lsp-eslint-auto-fix-on-save
#
Default: nil
Turns auto fix on save on or off.
lsp-eslint-fix-all-problem-type
#
Default: all
Determines which problems are fixed when running the source.fixAll code action.
lsp-eslint-quiet
#
Default: nil
Turns on quiet mode, which ignores warnings.
lsp-eslint-working-directories
#
Default: []
lsp-eslint-validate
#
Default: [javascript javascriptreact]
An array of language ids which should be validated by ESLint
lsp-eslint-provide-lint-task
#
Default: nil
Controls whether a task for linting the whole workspace will be available.
lsp-eslint-lint-task-enable
#
Default: nil
Controls whether a task for linting the whole workspace will be available.
lsp-eslint-lint-task-options
#
Default: .
Command line options applied when running the task for linting the whole workspace (see https://eslint.org/docs/user-guide/command-line-interface).
lsp-eslint-runtime
#
Default: nil
The location of the node binary to run ESLint under.
lsp-eslint-code-action-disable-rule-comment
#
Default: ((enable . t) (location . separateLine))
lsp-eslint-code-action-show-documentation
#
Default: ((enable . t))
lsp-eslint-experimental-incremental-sync
#
Default: t
Controls whether the new incremental text document synchronization should be used.
lsp-eslint-save-library-choices
#
Default: t
Controls whether to remember choices made to permit or deny ESLint libraries from running.
lsp-eslint-library-choices-file
#
Default: /home/runner/.emacs.d/.lsp-eslint-choices
The file where choices to permit or deny ESLint libraries from running is stored.