From f2c59fcfb292c4aacc5f6ccd4c959f7832373510 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Fri, 8 Dec 2017 15:04:27 -0800 Subject: [PATCH] Updates to stylelint package links/docs for new structure --- tools/stylelint-config-primer/CHANGELOG.md | 33 ------------------- tools/stylelint-config-primer/README.md | 4 +-- .../CHANGELOG.md | 20 ----------- 3 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 tools/stylelint-config-primer/CHANGELOG.md delete mode 100644 tools/stylelint-selector-no-utility/CHANGELOG.md diff --git a/tools/stylelint-config-primer/CHANGELOG.md b/tools/stylelint-config-primer/CHANGELOG.md deleted file mode 100644 index b0ad0d9b..00000000 --- a/tools/stylelint-config-primer/CHANGELOG.md +++ /dev/null @@ -1,33 +0,0 @@ -# HEAD - -# 2.0.0 - -:boom: **The following updates are breaking changes**, since code that disables the deprecated rule will now produce 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` - -The rest of the changes should not introduce new linting errors: - -- Updated: moved [browserslist](https://github.com/ai/browserslist) spec to `package.json` -- Updated: using the [`no-unsupported-browser-features` plugin](https://github.com/ismay/stylelint-no-unsupported-browser-features) 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` - -# 1.4.0 - -- Updated: Development dependencies are any version `*` -- Removed: `selector-class-pattern` from config. https://github.com/primer/stylelint-config-primer/pull/11 - -# 1.3.0 - -- Added: `length-zero-no-unit` to disallow zero values with units eg `0px` - -# 1.2.0 - -- Removed: We don't need `scss/at-extend-no-missing-placeholder` anymore taken care of by `at-rule-blacklist` -- Added: Adding `selector-no-type` to the rules - -# 1.0.0 - -- Creating a sharable config object diff --git a/tools/stylelint-config-primer/README.md b/tools/stylelint-config-primer/README.md index 808245d8..1bf29c87 100644 --- a/tools/stylelint-config-primer/README.md +++ b/tools/stylelint-config-primer/README.md @@ -75,7 +75,7 @@ This is a list of the lints turned on in this configuration, and what they do. * [declaration-block-no-duplicate-properties](http://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties/): Disallow duplicate properties within declaration blocks. _Ignore_: consecutive duplicated properties. * [declaration-block-no-shorthand-property-overrides](http://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides/): Disallow shorthand properties that override related longhand properties. -* [declaration-block-properties-order](http://stylelint.io/user-guide/rules/declaration-block-properties-order/): Properties in declaration blocks must be [sorted according to this list](https://github.com/primer/stylelint-config-primer/blob/1ac303e9a633ee38d168a014dcea10eaf5a95aab/index.js#L45-L215). +* [declaration-block-properties-order](http://stylelint.io/user-guide/rules/declaration-block-properties-order/): Properties in declaration blocks must be [sorted according to this list](https://github.com/primer/primer/blob/master/tools/stylelint-config-primer/index.js#L47-L217). * [declaration-block-semicolon-newline-after](http://stylelint.io/user-guide/rules/declaration-block-semicolon-newline-after/): There must always be a newline after the semicolon. * [declaration-block-semicolon-space-before](http://stylelint.io/user-guide/rules/declaration-block-semicolon-space-before/): There must never be whitespace before the semicolons. * [declaration-block-single-line-max-declarations](http://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations/): There should never be more than `1` declaration per line. @@ -116,7 +116,7 @@ This is a list of the lints turned on in this configuration, and what they do. * [no-eol-whitespace](http://stylelint.io/user-guide/rules/no-eol-whitespace/): Disallow end-of-line whitespace. * [no-extra-semicolons](http://stylelint.io/user-guide/rules/no-extra-semicolons/): Disallow extra semicolons. * [no-missing-end-of-source-newline](http://stylelint.io/user-guide/rules/no-missing-end-of-source-newline/): Disallow missing end-of-file newlines in non-empty files. -* [no-unsupported-browser-features](http://stylelint.io/user-guide/rules/no-unsupported-browser-features/): Disallow features that are unsupported by the browsers that [we are targeting in the config](https://github.com/primer/stylelint-config-primer/blob/70866772c3b916be5c62b95cfd94b37dfc6e5b04/index.js#L267) +* [no-unsupported-browser-features](http://stylelint.io/user-guide/rules/no-unsupported-browser-features/): Disallow features that are unsupported by the browsers that [we are targeting in the config](https://github.com/primer/primer/blob/master/tools/stylelint-config-primer/index.js#L272) #### Media Feature diff --git a/tools/stylelint-selector-no-utility/CHANGELOG.md b/tools/stylelint-selector-no-utility/CHANGELOG.md deleted file mode 100644 index 8131a15c..00000000 --- a/tools/stylelint-selector-no-utility/CHANGELOG.md +++ /dev/null @@ -1,20 +0,0 @@ - -# HEAD - -# 1.3.0 - -- Updating to latest Utilities - -# 1.2.0 - -- Updating dependency for stylelint@7.0.0 -- Updating to latest Utilities - -# 1.1.0 - - * Updated: Using updated primer-utilities module to pull classes in through exports - * Added: Class name to error message - -# 1.0.0 - - * Added: New rule `selector-no-utility`