@stylistic/stylelint-plugin

A collection of stylistic/formatting Stylelint rules

Please upgrade to v5 or later.
Last updated 3 years ago by firefoxic .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @stylistic/stylelint-plugin 
SYNC missed versions from official npm registry.

Stylelint Stylistic

License: MIT Changelog NPM version Test Status

An updatable collection of stylistic rules for Stylelint (in plugin form).

About and purpose

Stylelint has removed 76 rules that enforce stylistic conventions. This project returns these rules to keep styles consistent with your codeguide. In addition, new rules may be added in the future.

Installation and usage

Add @stylistic/stylelint-plugin and stylelint itself to your project:

npm add -D stylelint @stylistic/stylelint-plugin

Create the .stylelintrc config file (or open the existing one), add @stylistic/stylelint-plugin to the plugins array and the rules you need to the rules list. All rules from @stylistic/stylelint-plugin need to be namespaced with @stylistic/:

{
	"plugins": [
		"@stylistic/stylelint-plugin"
	],
	"rules": {
		// syntax rules from stylelint:
		"color-function-notation": "modern",
		"selector-max-compound-selectors": 2,

		// stylistic rules from @stylistic/stylelint-plugin:
		"@stylistic/color-hex-case": "lower",
		"@stylistic/number-leading-zero": "always",
		"@stylistic/unit-case": "lower"
	}
}

To avoid listing a lot of rules, you can use @stylistic/stylelint-config, which returns the stylistic rules removed in stylelint-config-standard and stylelint-config-recommended.


Please refer to Stylelint docs for detailed info on using this linter.

Need more?

ESLint deprecates stylistic rules, too. But you can continue to use them thanks to ESLint Stylistic.

Important documents

Current Tags

  • 6.0.0-alpha.1                                ...           alpha (a month ago)
  • 6.0.1                                ...           latest (22 days ago)
  • 6.0.0-next.0                                ...           next (a month ago)

25 Versions

  • 6.0.1                                ...           22 days ago
  • 6.0.0                                ...           24 days ago
  • 6.0.0-next.0 [deprecated]           ...           a month ago
  • 6.0.0-alpha.1 [deprecated]           ...           a month ago
  • 6.0.0-alpha.0 [deprecated]           ...           a month ago
  • 5.3.1                                ...           2 months ago
  • 5.3.0                                ...           4 months ago
  • 5.2.1                                ...           5 months ago
  • 5.2.0                                ...           6 months ago
  • 5.1.0                                ...           8 months ago
  • 5.0.1                                ...           10 months ago
  • 5.0.0                                ...           10 months ago
  • 4.0.1 [deprecated]           ...           10 months ago
  • 4.0.0 [deprecated]           ...           a year ago
  • 3.1.3 [deprecated]           ...           a year ago
  • 3.1.2 [deprecated]           ...           2 years ago
  • 3.1.1 [deprecated]           ...           2 years ago
  • 3.1.0 [deprecated]           ...           2 years ago
  • 3.0.1 [deprecated]           ...           2 years ago
  • 3.0.0 [deprecated]           ...           2 years ago
  • 2.1.3 [deprecated]           ...           2 years ago
  • 2.1.2 [deprecated]           ...           3 years ago
  • 2.1.1 [deprecated]           ...           3 years ago
  • 2.1.0 [deprecated]           ...           3 years ago
  • 2.0.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Total 25
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 0
Last Month 4
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE