Can't use stylelint-config-prettier
trobrock opened this issue · 3 comments
trobrock commented
When running in CodeClimate's hosted environment I get:
•• Timing: .engineConfig: 0.089s
Error: Could not find "stylelint-prettier/recommended". Do you need a `configBasedir`?
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.
Is there something special I need to do to use this plugin in the hosted environment?
trobrock commented
This was an issue with my config, sorry for the early post I should've ran it locally first.
trobrock commented
Sorry, I take that back. My config was bad, but now it runs locally and am still seeing the error in the hosted environment:
•• Timing: .engineConfig: 0.083s
Error: Could not find "stylelint-config-prettier". Do you need a `configBasedir`?
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.
.stylelintrc
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"plugins": ["stylelint-order"],
"rules": {
"order/order": [
"custom-properties",
"declarations"
],
"order/properties-alphabetical-order": true
}
}
.codeclimate.yml
plugins:
rubocop:
enabled: true
eslint:
enabled: false
stylelint:
enabled: true
scss-lint:
enabled: true
bundler-audit:
enabled: true
fixme:
enabled: true
exclude_patterns:
- ".rubocop*.yml"
- "spec/"
- "node_modules/"
- "!spec/support/helpers"
- "config/"
- "db/"
- "spec/"
- "vendor/"
- "coverage/"
- "bin/"
- ".idea/"
- "Guardfile"
gilbarbara commented
hey @trobrock
Codeclimate.com is running a really old version of this engine, they need to update it.
I've released a new version (2.3.0) with some updates