@stylelint/language-server
v1.1.0
Published
Stylelint Language Server Protocol implementation
Readme
@stylelint/language-server
The Stylelint language server, providing lint diagnostics, code actions, and more via the Language Server Protocol.
Usage
As a standalone server
Install the package globally or use npx:
npx @stylelint/language-server --stdioThe server communicates over stdio by default. Stylelint must be installed in the project you're linting. The language server resolves it from the workspace directory automatically.
As a library
import { createConnection, ProposedFeatures } from "vscode-languageserver";
import { StylelintLanguageServer } from "@stylelint/language-server";
const connection = createConnection(ProposedFeatures.all);
const server = new StylelintLanguageServer({
connection,
logLevel: "info"
});
server.start();Configuration
The server accepts configuration via LSP workspace/configuration requests. See the vscode-stylelint documentation for available settings.
