stylelint-plugin-use-baseline 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,11 +16,13 @@ npm install stylelint-plugin-use-baseline --save-dev
|
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
1. Create or update your Stylelint configuration file, for example
|
|
19
|
+
1. Create or update your Stylelint configuration file, for example `stylelint.config.js`.
|
|
20
20
|
2. Add `"stylelint-plugin-use-baseline"` to the `plugins` array.
|
|
21
21
|
3. Enable the rule by adding `"plugin/use-baseline"` to your `rules`.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
This is a good rule to use with "warning"-level severity, because its primary purpose is help you [narrow down the features that you'll need to use with more care](https://github.com/web-platform-dx/web-features/issues/2758#issuecomment-2712607492).
|
|
24
|
+
|
|
25
|
+
A minimal `stylelint.config.js` might look like this:
|
|
24
26
|
|
|
25
27
|
```js
|
|
26
28
|
/** @type {import("stylelint").Config} */
|
|
@@ -30,15 +32,14 @@ export default {
|
|
|
30
32
|
"plugin/use-baseline": [
|
|
31
33
|
true,
|
|
32
34
|
{
|
|
33
|
-
|
|
34
|
-
available: "widely",
|
|
35
|
+
severity: "warning",
|
|
35
36
|
},
|
|
36
37
|
],
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
40
|
```
|
|
40
41
|
|
|
41
|
-
Run Stylelint in your project (e.g., `npx stylelint "
|
|
42
|
+
Run Stylelint in your project (e.g., `npx stylelint "**/*.css"`).
|
|
42
43
|
|
|
43
44
|
## Rule Details
|
|
44
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stylelint-plugin-use-baseline",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A Stylelint plugin that enforces CSS feature availability based on Baseline.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"baseline",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"postcss-value-parser": "^4.2.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"stylelint": "^16.0.2"
|
|
52
|
+
"stylelint": "^16.0.2 || ^17.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"prettier": "^3.5.3",
|
|
75
75
|
"rollup": "^4.43.0",
|
|
76
76
|
"semantic-release": "^25.0.1",
|
|
77
|
-
"stylelint": "^
|
|
77
|
+
"stylelint": "^17.0.0",
|
|
78
78
|
"web-features": "^3.13.0"
|
|
79
79
|
}
|
|
80
80
|
}
|