2.1.0 • Published 5 months ago

stylelint-config-tenx v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

stylelint-config-tenx

Lint style, support css-modules 🆒

based on stylelint-config-standard and stylelint-config-css-modules

Usage

First, install this package, stylelint and the necessary plugins.

npm install -D stylelint-config-tenx stylelint@10.x
# or
yarn add -D stylelint-config-tenx stylelint@10.x

Then create a file named .stylelintrc.json(or .stylelintrc) with following contents in the root folder of your project:

{
  "extends": "stylelint-config-tenx"
}

Usage with IDE

vscode

First, install stylelint extension.

Name: stylelint
Id: shinnn.stylelint
Description: Modern CSS/SCSS/Less linter
Version: 0.51.0
Publisher: Shinnosuke Watanabe
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=shinnn.stylelint

Optional (but recommended) setup duplicate messages from both the built-in linter and vscode-stylelint

To prevent both the editor built-in linters css scss and this extension stylelint from reporting essentially the same errors like in the screenshot, disable the built-in ones in User or Workspace setting:

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