Skip to content

Commit

Permalink
feat(stylelint-config): replace stylelint-no-px to @miller-svt/stylel…
Browse files Browse the repository at this point in the history
…int-no-px

add autofix for no-px rule, with remSize = 16px
  • Loading branch information
s.v.zaytsev committed May 3, 2024
1 parent 7c6a670 commit 0549a63
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 47 deletions.
90 changes: 46 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/stylelint-config/angular.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: ['./stylelint.config.js'],
plugins: ['stylelint-order', 'stylelint-no-px'],
plugins: ['stylelint-order', '@miller-svt/stylelint-no-px'],
rules: {
'order/properties-order': [
[
Expand Down Expand Up @@ -55,7 +55,7 @@ module.exports = {
ignorePseudoElements: ['ng-deep'],
},
],
'meowtec/no-px': [
'MillerSvt/no-px': [
true,
{
ignore: [
Expand All @@ -73,6 +73,7 @@ module.exports = {
'4px',
'5px',
],
remSize: 16,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"postcss-less": "^6.0.0",
"stylelint": "^16.4.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-no-px": "^1.0.1",
"@miller-svt/stylelint-no-px": "^1.0.1",
"stylelint-order": "^6.0.4"
}
}

0 comments on commit 0549a63

Please sign in to comment.