Open Archinowsk opened 7 months ago
This seems to have initially broken in 2.0.1 when the file extension changed from recommended.js -> recommended.cjs
Changing it back to js seems to fix the config in 2.x.x versions
For @double-great/stylelint-a11y@2.0.2
we were able to get the recommended list working by using yarn to patch the package.json file to have exports.
"exports":{
"." : "./dist/index.js",
"./recommended": "./recommended.cjs"
},
Adding exports for @double-great/stylelint-a11y@3.0.2
got past the “could not find” error but currently getting a different error that I haven’t been able to solve yet.
TypeError: Cannot read properties of undefined (reading 'ignoreFiles')
I'm trying to use the recommended config but receive following error:
.stylelintrc.js
Command to run:
Happens with NPM and Yarn.
Versions:
OS: Win11
Adding rules directly works, for example this: