stylelint 16.0.0
- Removed: Node.js less than 18.12.0 support (#7020) (@ybiquitous).
- Removed: 76 rules deprecated in 15.0.0 (#6979) (@mattxwang).
- Changed:
stylelint.formattersobject to havePromisevalues (#7184) (@ybiquitous). - Changed: exit code for CLI flag error (#7134) (@ybiquitous).
- Changed: default syntax behaviour to always use safe-parser with
fixregardless of extension (#7357) (@ybiquitous). - Changed: TypeScript definitions for ESM (#7309) (@ybiquitous).
- Changed:
stylelint.rulesobject to havePromisevalues (#7279) (@ybiquitous). - Changed:
stylelint.utils.checkAgainstRuleto be an async function (#7339) (@ybiquitous). - Deprecated: CommonJS Node.js API (#7353) (@ybiquitous).
- Deprecated:
outputproperty in a Node.js API returned object. Instead,report/codeproperties are recommended (#7183) (@ybiquitous) & (@haocheng6). - Added:
exportsfield topackage.jsonfor Conditional Exports (ESM/CommonJS) (#7307) (@ybiquitous). - Added: support for ESM plugins (#7339) (@ybiquitous).
- Added: support for ESM custom formatters (#7343) (@ybiquitous).
- Added:
severitysecondary option's function support (#7202) (@kizu). - Added: support for a
Promiseformatter function (#7184) (@ybiquitous). - Added: support for ESM custom syntaxes (#7351) (@ybiquitous).
- Added:
report/codeproperties to a Node.js API returned object (#7183) (@ybiquitous) & (@haocheng6). - Fixed: no longer needed workaround for Cosmiconfig segfault (#7329) (@ybiquitous).
- Fixed: CLI regression to avoid waiting for stdin without any input (#7131) (@ybiquitous).
- Fixed: CLI to avoid different outputs on empty files and empty stdin (#7131) (@ybiquitous).
- Refactored:
.jsextension to.mjsand.cjs(#7307) (@ybiquitous).