Skip to content

Commit

Permalink
馃摃 docs(none): mention @roots/bud-preset-wordpress/stylelint (#2543)
Browse files Browse the repository at this point in the history
Mention `@roots/bud-preset-wordpress/stylelint` export.

- Fixes: #2542
- See also: #2538

## Type of change

**NONE: internal change**
  • Loading branch information
kellymears committed Jan 19, 2024
1 parent 40bdad7 commit 938928e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ description: 'Recommended extensions and base configuration for WordPress projec
sidebar_label: '@roots/bud-preset-wordpress'
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

The [@roots/bud-preset-wordpress](/extensions/bud-preset-wordpress) package is a great starting point for WordPress plugins & themes.

If you plan on using it in a WordPress theme you should consider using [@roots/sage](https://github.com/roots/sage).
Expand Down Expand Up @@ -34,7 +31,6 @@ The [@roots/bud-preset-wordpress preset](/extensions/bud-preset-wordpress) inclu
- @roots/bud-wordpress-dependencies
- @roots/bud-wordpress-externals
- @roots/bud-wordpress-theme-json
- @roots/wordpress-hmr

## Managing WordPress enqueues

Expand Down
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'
]
}
```

0 comments on commit 938928e

Please sign in to comment.