-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃摃 docs(none): mention @roots/bud-preset-wordpress/stylelint
- Loading branch information
1 parent
07083aa
commit 4e868aa
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
sources/@repo/docs/content/extensions/bud-preset-wordpress/stylelint.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Stylelint | ||
description: 'Setting up stylelint rules' | ||
sidebar_label: Stylelint | ||
--- | ||
|
||
If you are using [stylelint](https://stylelint.io/) you may wish to extend our base configuration: | ||
|
||
```js | ||
module.exports = { | ||
extends: [ | ||
'@roots/bud-wordpress-preset/stylelint'], | ||
}; | ||
``` | ||
|
||
This is especially true if you are using the [@roots/bud-sass/stylelint](/extensions/bud-sass) configuration, which conflicts with the WordPress standard naming scheme for css variables. | ||
|
||
```js | ||
module.exports = { | ||
extends: [ | ||
'@roots/bud-stylelint/config', | ||
'@roots/bud-sass/stylelint', | ||
'@roots/bud-wordpress-preset/stylelint' | ||
] | ||
} | ||
``` |