Skip to content

Commit 9216ecb

Browse files
author
Daniela Valero
committed
refactor: Use blacklist rule to prevent border:none
In favour of timothyneiljohnson/stylelint-value-border-zero#2 switching to declaration-property-blacklist to disallow border: none;
1 parent ebbc31b commit 9216ecb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/stylelint-config-airbnb/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = {
22
plugins: [
33
'stylelint-scss',
4-
'stylelint-value-border-zero',
54
],
65
rules: {
76
'at-rule-empty-line-before': 'never',
@@ -23,8 +22,8 @@ module.exports = {
2322
'scss/dollar-variable-pattern': '^foo',
2423
'scss/at-extend-no-missing-placeholder': true,
2524

26-
'value-border-zero': {
27-
convention: '0',
25+
'declaration-property-value-blacklist': {
26+
'/^border/': ['none'],
2827
},
2928
},
3029
};

packages/stylelint-config-airbnb/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"eslint-plugin-jsx-a11y": "^1.5.5",
3333
"eslint-plugin-react": "^5.2.2",
3434
"stylelint": "^6.9.0",
35-
"stylelint-scss": "^1.2.1",
36-
"stylelint-value-border-zero": "^1.0.2"
35+
"stylelint-scss": "^1.2.1"
3736
},
3837
"peerDependencies": {
3938
"stylelint": "^6.9.0",

0 commit comments

Comments
 (0)