Remove deprecated CommonJS Node.js API #7395
Labels
status: agreed but held
is agreed on but implementation is held
type: enhancement
a new feature that isn't related to rules
Milestone
When releasing 16.0.0, we announced we would remove the CommonJS Node.js API in the next major version. See the migration guide:
stylelint/docs/migration-guide/to-16.md
Lines 5 to 7 in da7ce21
Also, we must drop the support for CommonJS plugins because Stylelint plugins written in CommonJS cannot import pure ESM Stylelint modules (e.g.,
require('stylelint')
will be errored).stylelint/lib/augmentConfig.mjs
Lines 323 to 328 in da7ce21
By doing this, we will be able to achieve:
.cjs
files (the package size reduces).mjs
→.js
change?)The text was updated successfully, but these errors were encountered: