This linter plugin for VS Code provides an interface to doiuse
If you want to thank me, or promote your Issue.
Sorry, but I have work and support for plugins and modules requires some time after work. I will be glad of your support or PR's.
Linter installation is performed in several stages:
- Install doiuse use
npm i -D doiuseornpm i -g doiuse. - Press F1 and select
Extensions: Install Extensions. - Search and choose
vscode-doiuse.
See the extension installation guide for details.
Enable the linter in the VS Code settings.
{
"doiuse.enable": true
}- CSS
- Less
- SCSS
- Sass (experimental and by sass-indented)
- Stylus (experimental, only indent-based CSS syntax and by extensions)
doiuse.enable
- Type:
Boolean - Default:
false
Control whether doiuse is enabled for styles files or not.
doiuse.messageLevel
- Type:
String - Default:
Warning - Available values:
"Information", "Warning", "Error"
Represents a diagnostic level, such as a Information, Warning or Error.
doiuse.browsers
- Type:
Array - Default:
[] - Example:
["ie >= 9"]
An autoprefixer-like array of browsers. See the official repository for details.
Through the config files of browserslist, it is also possible to define the scope per folder, however, the above VSCode setting has priority over these files.
doiuse.ignore
- Type:
Array - Default:
[] - Example:
["rem"]
An optional array of features to ignore. See the official repository for details.
doiuse.ignoreFiles
- Type:
Array - Default:
[] - Example:
["**/*.css"]
An optional array of file globs to match against original source file path, to ignore. See the official repository for details.
doiuse.run
- Type:
String - Default:
onType - Supported values:
onType,onSave
Run the linter on save (onSave) or on type (onType).
See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.
