Open YodasWs opened 3 years ago
For anybody stopping by with the same issue, based on a similar issue here, it seems that the problem is sass-lint's dependence upon an older version of ESLint. I tried downgrading from ESLint 7.32.0 to 5.16.0 and sass-lint worked. Not a workable solution for me, but a fun little experiment nontheless.
FWIW, I switched to Stylelint, at least for the time being. Last release was 20 days ago at time of writing...
Create .sass-lint.yml
if you don't already have one and add this to it:
options:
formatter: '../cli-engine/formatters/stylish'
Then force sass-lint
to use an updated eslint
with one of these
resolutions
with "sass-lint/eslint": "^8.42.0"
or "**/eslint": "^8.42.0"
.overrides
with
"sass-lint": {
"eslint": "^8.42.0"
}
I have tested the Yarn solution but not the NPM one.
I am trying to run sass-lint through gulp-sass using eslint 6.0.1, but I get the following error message:
I can run eslint through gulp-eslint without hitting this error.