hex-ci / linter-stylelint-plus

A plugin for Atom Linter providing an interface to stylelint.

Home Page:https://atom.io/packages/linter-stylelint-plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linter-stylelint+

A plugin for Atom Linter providing an interface to stylelint.

Support for custom scopes and configOverrides.

If you have new needs, you can write in the issue, thank you.

Fork from linter-stylelint.

demo

Installation

apm install linter-stylelint-plus

linter-stylelint-plus runs stylelint against your CSS, SCSS, Less, PostCSS, and SugarSS files.

Configuration

You can pass a configuration to stylelint in any of the following ways:

  • Place a configuration file (.stylelintrc or stylelint.config.js) in your project's root folder or in any parent folder.

  • Add a stylelint section in your package.json.

  • In the settings, check Use standard to automatically use stylelint-config-standard

.stylelintrc is always prioritized. If you have checked Use standard in the settings and also have a .stylelintrc file, your .stylelintrc configuration will extend the preset, using stylelint's extend functionality.

Notes

As of stylelint v7.0.0 the ability to lint embedded style code has been removed from core, replaced with the ability for generic processors to handle any file format. Currently one has yet to be written for pulling style code out of HTML, if you are interested in bringing this functionality back to linter-stylelint-plus, check out their documentation on how to write a processor to handle HTML, and any other files that contain style code!

License

MIT: http://1000ch.mit-license.org/

About

A plugin for Atom Linter providing an interface to stylelint.

https://atom.io/packages/linter-stylelint-plus


Languages

Language:JavaScript 100.0%