Skip to content

Stylelint v16 compatibility

This MR aims to offer support for Stylelint v16.

Due to the change on the stylelint.formatters object (see https://github.com/stylelint/stylelint/blob/16.0.0/docs/migration-guide/to-16.md#changed-nodejs-api-stylelintformatters-object), this requires an await on the imported formatter. The easiest way to be able to do this was converting to an ES module, which is probably a good conversion anyways.

Also the missing returnValue parameter is now part of the exported formatter function.

However, currently tests are failing due to being incompatible with the new ES module syntax. I have not yet found a full solution to this. This also converts test to ES module and updates jest to be able to work with that. Finally it updates ESLint and plugin to properly parse code and apply fixes.

Closes #3

Edited by Jesper Noordsij

Merge request reports

Loading