houndci / hound

Automated code review for GitHub pull requests.
https://houndci.com
MIT License
1.95k stars 402 forks source link

Support for stylelint-config-sass-guidelines and update stylelint #1771

Open emattias opened 4 years ago

emattias commented 4 years ago

With a .stylelintrc.json file with:

{
  "extends": [
    "stylelint-config-sass-guidelines",
    "stylelint-config-prettier"
  ],
  ...
}

I get this error:

Error: Could not find "stylelint-config-sass-guidelines". Do you need a `configBasedir`?
    at module.exports (/home/linters/app/node_modules/stylelint/lib/utils/configurationError.js:8:28)
    at getModulePath (/home/linters/app/node_modules/stylelint/lib/utils/getModulePath.js:26:11)
    at loadExtendedConfig (/home/linters/app/node_modules/stylelint/lib/augmentConfig.js:194:22)
    at resultPromise.then.resultConfig (/home/linters/app/node_modules/stylelint/lib/augmentConfig.js:168:16)

I have added stylelint-config-sass-guidelines to my package.json but you are not using my package.json packages but have your own whitelist of npm packages, if I have understood correctly? Is there a list of which those are (and which versions?)

Also the supported stylelint version 10.1.0 is pretty old. The latest at the moment is 13.0.0. Could it be updated?

magnito777 commented 4 years ago

OK am following

BenHeath0 commented 4 years ago

Did you ever figure this out?

adrianmiles commented 3 years ago

Did you ever figure this out?

I had this issue after cloning a project with style lint in it and not running yarn / npm install (since I had cloned it there were no node_modules yet). I jumped straight into trying to debug without bothering to install everything 😓 After doing so everything behaved