gilbarbara / codeclimate-stylelint

A Code Climate engine for the mighty, modern CSS linter
24 stars 18 forks source link

Can't use stylelint-config-prettier #39

Closed trobrock closed 4 years ago

trobrock commented 4 years ago

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 4 years ago

This was an issue with my config, sorry for the early post I should've ran it locally first.

trobrock commented 4 years ago

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 4 years ago

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