Skip to content

Releases: primer/stylelint-config

v8.2.1

02 Oct 23:49
0a63123
Compare
Choose a tag to compare

🐛 Bug fix

  • Add globby as a direct dependency. It was masked by npm's hoisting in the last release. ☹️

v8.2.0

02 Oct 23:30
871b0d8
Compare
Choose a tag to compare

🚀 Features

  • The new primer/no-unused-vars rule helps catch unused Sass variables in your project #46
  • The new primer/variables rule helps enforce the use of specific Primer SCSS variables in a variety of known CSS properties, and can fix common problems automatically! #28

📝 Documentation

🏠 Internal

  • Resolve a security vulnerability with npm audit fix

v8.1.0

20 Sep 06:21
a1d7adb
Compare
Choose a tag to compare

🚀 New features

  • The primer/no-override rule now has an ignoreSelectors option, which takes an array of strings and/or regular expressions or a function to ignore (pass) matched selectors.

🐛 Bug fixes

  • primer/no-override now really only counts class selectors as violations!

v8.0.0 (September 9, 2019)

09 Sep 18:48
d6b8c95
Compare
Choose a tag to compare

💥 Breaking changes

  • Remove stylelint-selector-no-utility and all references #41
  • Focus primer/no-overrides solely on class selectors, and improve error messages #37

🏠 Internal

  • Upgrade stylelint-scss to 3.10.0 (closes #34)
  • Migrate to Actions v2 #40
  • npm audit fix to resolve dependency security vulnerabilities

v7.0.1 (June 20, 2019)

20 Jun 16:44
9d25628
Compare
Choose a tag to compare

🐛 This patch release fixes #32 by loosening the peer dependency version specifier for @primer/css so that the config works with any version of Primer CSS after primer/css#666.

📦 We've also upgraded to jest@24.8.0 to resolve some dependency vulnerabilities.

v7.0.0

11 Apr 18:41
e16105f
Compare
Choose a tag to compare

💥 Breaking changes

  • The config now uses primer/no-override instead of primer/selector-no-utility. See #25 for more info.
  • @primer/css is now a required peer dependency, because we want this to work with different versions of Primer.

🚀 Features

  • primer/no-override is a new rule that replaces primer/selector-no-utility and makes it possible to configure files or directories with options that allow or prevent overrides of selectors from different Primer CSS "bundles". See #25 for more info.

🏠 Internal

  • There are more extensive tests, additional expect() matchers, and test utilities that make it easy to set rule options in each test.

v6.0.0 (2019-03-18)

18 Mar 19:27
6c7add8
Compare
Choose a tag to compare

TL;DR: this release requires @primer/css as a peer dependency. If you really don't want that, you -should be able to disable primer/selector-no-utility in your config and prevent it from being loaded.

💥 Breaking changes

  • This release includes stylelint-selector-no-utility@4.0.0, which is a breaking change because it (and now, this module) requires @primer/css as a peer dependency so that we can pull the list of immutable utility classes from the module at runtime rather than building them at publish time.

4.0.1 - publish action

11 Feb 20:56
Compare
Choose a tag to compare

This is a maintenance release that adds the primer/publish action to automatically publish to npm when we merge to master. 🌈 🦄 🚀

v4.0.0

04 Feb 20:18
Compare
Choose a tag to compare

This is a major release that bumps two of our major dependencies (stylelint-scss and stylelint-order) by two major versions each, and reintroduces this package as a separate repository on GitHub. (See primer/css#652 for more info.)

v2.0.0

19 Jul 20:07
Compare
Choose a tag to compare

💥 Breaking changes

The following updates are breaking changes, since comments that disable the deprecated rules will now produce (failing) linting errors. Please update your stylelint-disable statements accordingly:

  • Replaced selector-no-id: true with selector-max-id: 0
  • Replaced selector-no-type: true with selector-max-type: 0

Updates

The rest of the changes should not introduce new linting errors:

  • Updated: moved browserslist spec to package.json
  • Updated: using the no-unsupported-browser-features plugin instead of the deprecated no-unsupported-browser-features rule
  • Removed: media-feature-no-missing-punctuation
  • Updated: replaced rule-nested-empty-line-before and rule-non-nested-empty-line-before with rule-empty-line-before