Skip to content

Conversation

@krema
Copy link
Owner

@krema krema commented Jul 25, 2025

This pull request addresses the DeprecationWarning: The CommonJS Node.js API is deprecated warning encountered during ng lint due to Stylelint's move towards a pure ESM (ECMAScript Modules) ecosystem.

closes #378

@krema krema force-pushed the bugfix/deprecated-stylelint-cjs branch from 2651b09 to 175b374 Compare July 25, 2025 18:46
…usage

BREAKING CHANGE: The CommonJS Node.js API for Stylelint has been deprecated and will be removed in the next major release. This commit updates `@krema/angular-eslint-stylelint-builder` and related configurations to utilize Stylelint's ECMAScript Modules (ESM) API.

Plugin authors or users of `stylelint.lint()` directly within their projects may need to adjust their imports or configurations to use ESM. Custom syntaxes and formatters are not affected.

The previous `DeprecationWarning: The CommonJS Node.js API is deprecated` message on `ng lint` will no longer appear.

See Stylelint migration guide: https://stylelint.io/migration-guide/to-16

chore(test): convert to vitest

ci(actions): disable fail fast
@krema krema force-pushed the bugfix/deprecated-stylelint-cjs branch from 4434e6c to 131d4dd Compare July 25, 2025 18:58
@krema krema merged commit b531925 into main Jul 25, 2025
4 checks passed
@krema krema deleted the bugfix/deprecated-stylelint-cjs branch July 25, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warning: The CommonJS Node.js API is deprecated

2 participants