Skip to content

Commit

Permalink
Move function-url-quotes and at-rule-no-unknown to the 'rules' key (#174
Browse files Browse the repository at this point in the history
)

* Move function-url-quotes and at-rule-no-unknown to the 'rules' key

* Update changelog
  • Loading branch information
ocean90 authored Feb 10, 2022
1 parent 5059f65 commit 5ccf719
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* CSS: Increase minimum peer dependency of `stylelint` from 13 to 14.
* CSS: Increase minimum peer dependency of `@wordpress/stylelint-config` from 19 to 20.

### Fixed
* CSS: Correctly set rules for `function-url-quotes` and `at-rule-no-unknown`.

## [2.2.0] - 2021-07-15

### Changed
Expand Down
16 changes: 8 additions & 8 deletions packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ module.exports = {
'Selector should use lowercase and hyphens to separate words or in BEM style: block-name__elem-name--mod-name (selector-class-pattern)',
},
],
'function-url-quotes': [
'always',
{
except: [ 'empty' ],
},
],
// At-rules used by postcss-mixins.
'at-rule-no-unknown': [ true, { ignoreAtRules: [ 'define-mixin', 'mixin' ] } ],
},
'function-url-quotes': [
'always',
{
except: [ 'empty' ],
},
],
// At-rules used by postcss-mixins.
'at-rule-no-unknown': [ true, { ignoreAtRules: [ 'define-mixin', 'mixin' ] } ],
};

0 comments on commit 5ccf719

Please # to comment.