Skip to content

Commit

Permalink
fix: enable plugin/declaration-block-no-ignored-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed May 10, 2022
1 parent 65bae91 commit de9f1ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fixtures/basic/a.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
a {
display: inline;

/* expect error */
/* stylelint-disable-next-line plugin/declaration-block-no-ignored-properties */
width: 100px;
}
2 changes: 2 additions & 0 deletions libs/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
'stylelint-declaration-block-no-ignored-properties',
],
rules: {
'plugin/declaration-block-no-ignored-properties': true,
'font-family-name-quotes': null,
// 选择器命名
'selector-class-pattern': [
// 命名规范
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@col0ring/stylelint-config",
"description": "Col0ring's Stylelint Config Presets",
"version": "0.0.2",
"version": "0.0.3",
"main": "./libs/index.js",
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit de9f1ff

Please sign in to comment.