Skip to content

Commit 4c70882

Browse files
authored
feat: add support for baseline years (#81)
* feat: add support for baseline years * regenerate data and address feedback * encode/decode status and year as a string * countably fewer * update baseline encoding * add test, decode in isSupported * max year
1 parent 9ddd679 commit 4c70882

File tree

5 files changed

+1914
-1759
lines changed

5 files changed

+1914
-1759
lines changed

docs/rules/require-baseline.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ h1:has(+ h2) {
8787

8888
This rule accepts an option object with the following properties:
8989

90-
- `available` (default: `"widely"`) - change to `"newly"` available to allow a larger number of properties and at-rules.
90+
- `available` (default: `"widely"`)
91+
- change to `"newly"` available to allow features that have had cross-browser support for fewer than 30 months
92+
- set to a numeric baseline year, for which all features that became baseline that year or earlier should be allowed (example: `2023`)
9193

9294
## When Not to Use It
9395

0 commit comments

Comments
 (0)