Skip to content

Commit d929ddc

Browse files
committed
docs: improve structure of use-baseline rule documentation
1 parent 3c14d9e commit d929ddc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/rules/use-baseline.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ Examples of **correct** code:
9999

100100
### Options
101101

102-
This rule accepts an option object with the following properties:
102+
This rule accepts an options object with the following properties:
103103

104104
- `available` (default: `"widely"`)
105105
- change to `"newly"` to allow features that are at the Baseline newly available stage: features that have been supported on all core browsers for less than 30 months
106106
- set to a numeric baseline year, such as `2023`, to allow features that became Baseline newly available that year, or earlier
107107
- `allowAtRules` (default: `[]`) - Specify an array of at-rules that are allowed to be used.
108+
- `allowProperties` (default: `[]`) - Specify an array of properties that are allowed to be used.
109+
- `allowSelectors` (default: `[]`) - Specify an array of selectors that are allowed to be used.
110+
111+
#### `allowAtRules`
108112

109113
Examples of **correct** code with `{ allowAtRules: ["container"] }`:
110114

@@ -118,7 +122,7 @@ Examples of **correct** code with `{ allowAtRules: ["container"] }`:
118122
}
119123
```
120124

121-
- `allowProperties` (default: `[]`) - Specify an array of properties that are allowed to be used.
125+
#### `allowProperties`
122126

123127
Examples of **correct** code with `{ allowProperties: ["user-select"] }`:
124128

@@ -130,7 +134,7 @@ Examples of **correct** code with `{ allowProperties: ["user-select"] }`:
130134
}
131135
```
132136

133-
- `allowSelectors` (default: `[]`) - Specify an array of selectors that are allowed to be used.
137+
#### `allowSelectors`
134138

135139
When you want to allow the [& nesting selector](https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector), you can use `"nesting"`.
136140

0 commit comments

Comments
 (0)