Skip to content

Commit

Permalink
Prepare changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Sep 27, 2021
1 parent 44bdf5d commit 6db6439
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## 23.0.0

This releases adds over a dozen new rules.

If needed, you can [extend the config](README.md#extending-the-config) to turn off or lower the severity of any of the new rules.

We recommend using [Autoprefixer](https://github.com/postcss/autoprefixer) to automatically prefix your at-rules, properties, selectors and values.

- Removed: `stylelint` less than `14.0.0` from peer dependencies.
- Changed: updated to [`stylelint-config-recommended@6.0.0`](https://github.com/stylelint/stylelint-config-recommended/releases/tag/6.0.0).
- Added: `alpha-value-notation` rule.
- Added: `at-rule-no-vendor-prefix` rule.
- Added: `color-function-notation` rule.
- Added: `custom-media-pattern` rule.
- Added: `custom-property-pattern` rule.
- Added: `declaration-block-no-redundant-longhand-properties` rule.
- Added: `font-family-name-quotes` rule.
- Added: `function-url-quotes` rule.
- Added: `hue-degree-notation` rule.
- Added: `keyframes-name-pattern` rule.
- Added: `max-line-length` rule.
- Added: `media-feature-name-no-vendor-prefix` rule.
- Added: `no-empty-first-line` rule.
- Added: `no-irregular-whitespace` rule.
- Added: `number-max-precision` rule.
- Added: `property-no-vendor-prefix` rule.
- Added: `selector-attribute-quotes` rule.
- Added: `selector-class-pattern` rule.
- Added: `selector-id-pattern` rule.
- Added: `selector-no-vendor-prefix` rule.
- Added: `shorthand-property-no-redundant-values` rule.
- Added: `string-quotes` rule.
- Added: `value-no-vendor-prefix` rule.

## 22.0.0

- Removed: `stylelint` less than `13.13.0` from peer dependencies.
Expand Down
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![NPM version](https://img.shields.io/npm/v/stylelint-config-standard.svg)](https://www.npmjs.org/package/stylelint-config-standard) [![Build Status](https://github.com/stylelint/stylelint-config-standard/workflows/CI/badge.svg)](https://github.com/stylelint/stylelint-config-standard/actions)

> The standard shareable config for stylelint.
> The standard shareable config for Stylelint.
Extends [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended).

Expand Down Expand Up @@ -120,7 +120,34 @@ Set your stylelint config to:

Add a `"rules"` key to your config, then add your overrides and additions there.

For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule,and add the `unit-allowed-list` rule:
You can turn off rules by setting its value to `null`. For example:

```json
{
"extends": "stylelint-config-standard",
"rules": {
"selector-class-pattern": null
}
}
```

Or lower the severity of a rule to a warning using the `severity` secondary option. For example:

```json
{
"extends": "stylelint-config-standard",
"rules": {
"property-no-vendor-prefix": [
true,
{
"severity": "warning"
}
]
}
}
```

A more complete example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule, set the severity of the `number-max-precision` rule to `warning`, and add the `unit-allowed-list` rule:

```json
{
Expand All @@ -134,6 +161,12 @@ For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules`
],
"indentation": "tab",
"number-leading-zero": null,
"number-max-precision": [
4,
{
"severity": "warning"
}
],
"unit-allowed-list": ["em", "rem", "s"]
}
}
Expand Down

0 comments on commit 6db6439

Please sign in to comment.