stylelint-config-silverwind 44.0.2 → 46.0.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 CHANGED
@@ -9,13 +9,18 @@
9
9
  pnpm add -D stylelint-config-silverwind
10
10
  ```
11
11
 
12
- In `stylelint.config.js`:
12
+ In `stylelint.config.ts`:
13
13
 
14
- ```js
15
- /** @type {import("stylelint").Config} */
16
- export default {
17
- extends: "stylelint-config-silverwind",
18
- };
14
+ ```ts
15
+ import {base} from "stylelint-config-silverwind";
16
+
17
+ export default base({
18
+ referenceFiles: ["src/vars.css"],
19
+ });
19
20
  ```
20
21
 
22
+ `base` spreads top-level stylelint options over the defaults and merges `rules`.
23
+
24
+ Setting `referenceFiles` enables the `no-unknown-animations`, `no-unknown-custom-media` and `no-unknown-custom-properties` rules, which check usages against the files that define them.
25
+
21
26
  © [silverwind](https://github.com/silverwind), distributed under BSD licence
package/dist/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
1
  import { Config } from "stylelint";
2
- //#region index.d.ts
3
- declare const _default: Config;
4
- //#endregion
5
- export { _default as default };
2
+ export declare function base({ plugins, overrides, rules, ...other }?: Config): Config;