ppseprus / vscode-doiuse

:electric_plug: Lint CSS for browser support against caniuse database.

Home Page:https://goo.gl/qBPxgx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VS Code plugin for doiuse

This linter plugin for VS Code provides an interface to doiuse

doiuse

Donate

If you want to thank me, or promote your Issue.

Donate

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.

Install

Linter installation is performed in several stages:

  1. Install doiuse use npm i -D doiuse or npm i -g doiuse.
  2. Press F1 and select Extensions: Install Extensions.
  3. Search and choose vscode-doiuse.

See the extension installation guide for details.

Usage

Enable the linter in the VS Code settings.

{
  "doiuse.enable": true
}

Supported languages

  • CSS
  • Less
  • SCSS
  • Sass (experimental and by sass-indented)
  • Stylus (experimental, only indent-based CSS syntax and by extensions)

Supported settings

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.

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).

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

About

:electric_plug: Lint CSS for browser support against caniuse database.

https://goo.gl/qBPxgx

License:MIT License


Languages

Language:TypeScript 83.4%Language:CSS 16.6%