AndyOGo / stylelint-declaration-strict-value

Specify properties for which a variable, function, keyword or value must be used.
MIT License
133 stars 10 forks source link

feat: support stylelint v16 #328

Closed AndyOGo closed 8 months ago

AndyOGo commented 8 months ago

fixes #327

Follows https://stylelint.io/migration-guide/to-16/

Note 1: ESM requires experimental node features

The preset needs the --experimental-vm-modules Node.js flag to support ESM If you get an error (e.g. a segmentation fault while running the preset on Node.js 18), https://stylelint.io/migration-guide/to-16/#jest-preset-stylelint

Node 2: stylelint.lint() CommonJS Node API is deprecated and will be removed.

Using the CommonJS Node.js API will trigger a deprecation warning. If you're not quite ready to migrate to ESM yet, you can use the quietDeprecationWarnings option to hide the warning. https://stylelint.io/migration-guide/to-16/#stylelintlint