polish-match-stylesheet-names-to-rules

1.0.0 • Public • Published

polish-match-stylesheet-names-to-rules

Polish plugin to flag files where the top-level selector does not match the style name. This encourages small files and componentized Sass.

Build Status

Installation

npm install polish-match-stylesheet-names-to-rules

Note that this only works for Sass & SCSS.

Example

Filename: _global_header.scss Enforced structure:

.global-header {
  ...

  ~ .button {
    ...
  }
}

Both the filename and the top-level selector are lowercased, and underscores are globally replace with hyphens, before doing a comparison.

Readme

Keywords

none

Package Sidebar

Install

npm i polish-match-stylesheet-names-to-rules

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • brendan