Closed AndyOGo closed 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
--experimental-vm-modules
Node 2: stylelint.lint() CommonJS Node API is deprecated and will be removed.
stylelint.lint()
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
quietDeprecationWarnings
fixes #327
Follows https://stylelint.io/migration-guide/to-16/
Note 1: ESM requires experimental node features
Node 2:
stylelint.lint()
CommonJS Node API is deprecated and will be removed.