stylelint-regex

1.2.0 • Public • Published

v1.2.0 breaking change in configuration, it accepts array of objects now

Stylelint Regex

Full flexibility for rule creation using regex

Examples:

Disallow certain file name in @imports

"stylelint/regex": [[{"@import styles/main": "Global-styling is forbidden to import"}]]

Ignore per file

"stylelint/regex": [[{"@import styles/main": "Global-styling is forbidden to import"}], { ignore: ["styles/global.scss"] }]

This will not throw error if @import styles/main is found inside the styles/global.scss

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1,652
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1,652
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i stylelint-regex

Weekly Downloads

1,652

Version

1.2.0

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • blazh