8000 GitHub - masumsoft/vscode-stylelint: A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

masumsoft/vscode-stylelint

 
 

Repository files navigation

vscode-stylelint

Build Status

A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint

screenshot

Installation

  1. Execute Extensions: Install Extensions command from Command Palette.
  2. Type @sort:installs stylelint into the search form and install the topmost one.

Read the extension installation guide for more details.

Optional (but recommended) setup

duplicate messages from both the built-in linter and vscode-stylelint

To prevent both the VSCode built-in CSS linter [css] and this extension [stylelint] reporting the same CSS errors like in the screenshot, you can disable the built-in ones in User or Workspace setting:

"css.validate": false,
"less.validate": false,
"scss.validate": false

Usage

Once you follow the stylelint startup guide by creating a configuration file or edit stylelint.* VSCode settings, stylelint automatically validates documents with these language identifiers:

Extension settings

Though it's highly recommended to add a stylelint configuration file to your workspace folder instead, you can also use the following extension settings.

stylelint.enable

Type: boolean
Default: true

Control whether stylelint is enabled or not.

stylelint.configOverrides

Type: Object
Default: null

Will be directly passed to configOverrides option.

stylelint.config

Type: Object
Default: null

Will be directly passed to config option. Note that if you set config option, this plugin ignores all the stylelint configuration files.

stylelint.additionalDocumentSelectors

Type: Array<string>
Default: []

Document types that you can use to run stylelint against if you are using CSS inside document types like: javascriptreact, typescriptreact.

License

ISC License © 2018 Shinnosuke Watanabe

About

A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
0