stylelint-warning-to-vscode-diagnostic
Convert a stylelint warning into a Visual Studio Code diagnostic
const lint = ;const stylelintWarningToVscodeDiagnostic = ; async { const result = await ; const warning = resultwarnings; /* { rule: 'color-named', text: 'Unexpected named color "red" (color-named)', severity: 'error', line: 1, column: 12 } */ ; /* { message: 'Unexpected named color "red" (color-named)', severity: 1, source: 'stylelint', range: { start: { line: 0, character: 11 }, end: { line: 0, character: 11 } } } */};
Installation
npm install stylelint-warning-to-vscode-diagnostic
API
const stylelintWarningToVscodeDiagnostic = ;
stylelintWarningToVscodeDiagnostic(warning)
warning: Object
(stylelint warning)
Return: Object
(VS Code diagnostic)
License
ISC License © 2018 Shinnosuke Watanabe