stylelint-validator icon indicating copy to clipboard operation
stylelint-validator copied to clipboard

Stylelint 16 Support

Open dons20 opened this issue 6 months ago • 2 comments

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)

dons20 avatar Dec 17 '23 08:12 dons20

https://github.com/csstree/stylelint-validator/pull/59 adds stylelint v16 support.

carlosjeurissen avatar Feb 03 '24 19:02 carlosjeurissen

@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

carlosjeurissen avatar Feb 19 '24 15:02 carlosjeurissen