Skip to content

Commit

Permalink
Configure stylelint for WP Scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Aug 2, 2022
1 parent ffb4da1 commit 740bdee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
release/*
dist/*
vendor/*
gulp-tasks/*
17 changes: 17 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "@wordpress/stylelint-config/scss",
"rules": {
"font-family-no-missing-generic-family-keyword": [
true,
{
"ignoreFontFamilies": [
"dashicons"
]
}
],
"font-weight-notation": "named-where-possible",
"no-descending-specificity": null,
"selector-class-pattern": null,
"selector-id-pattern": null
}
}

0 comments on commit 740bdee

Please sign in to comment.