stylelint-validator
stylelint-validator copied to clipboard
Stylelint 16 Support
Would like to use this plugin in version 16, and it probably requires an update to ESM. https://stylelint.io/migration-guide/to-16#deprecated-commonjs-api
Current error:
Error: Cannot find module '{redacted}/frontend/node_modules/stylelint/lib/utils/isStandardSyntaxAtRule.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
at resolveExports (node:internal/modules/cjs/loader:567:14)
at Module._findPath (node:internal/modules/cjs/loader:636:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> ({redacted}/frontend/node_modules/stylelint-csstree-validator/cjs/index.cjs:4:32)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
https://github.com/csstree/stylelint-validator/pull/59 adds stylelint v16 support.
@dons20 @louh @AllanChain @xiaoxiangmoe @rgant @ChrisBews pushed the v16 supported version to npm for the time being until we can get this merged. https://www.npmjs.com/package/@carlosjeurissen/stylelint-csstree-validator