bjankord / stylelint-config-sass-guidelines

⚙ A stylelint config inspired by https://sass-guidelin.es/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find "stylelint-order"

woodyrew opened this issue · comments

I get the following error when I enable stylelint-config-sass-guidelines in .stylelintrc from stylelint CLI and Atom.

Error: Could not find "stylelint-order". Do you need a `configBasedir`?

Could not find "stylelint-order". Do you need a configBasedir?

Is there a solution?

You need to add plugin for stylelint-config-sass-guidelines

npm i stylelint-order -D

You need all dependencies that are listed in package.json under peerDependencies in satisfying versions.

npm info "stylelint-config-sass-guidelines@latest" peerDependencies
Currently that is:

"peerDependencies": {
    "stylelint": ">=8.0.0",
    "stylelint-order": ">=0.7.0",
    "stylelint-scss": ">=2.0.0"
},
npm i --save-dev stylelint@>=8.0.0 stylelint-order@>=0.7.0 stylelint-scss@>=2.0.0

This should be added to the readme as at first look it seems to be "battery included".

I'm open to a PR if someone wants to update the README file noting the peer dependencies needed to be installed for this project.

Could stylelint-order be added to the stylelint-scss dependencies to avoid this?

@woodyrew Yeah I'm fine adding stylelint-order and stylelint-scss to the dependencies.