gilbarbara / codeclimate-stylelint

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

Error: Could not find "stylelint-config-styled-components". Do you need a `configBasedir`? #35

Closed knightbk closed 3 years ago

knightbk commented 4 years ago

I created an open source repo to demonstrate this failure, but how can we get support for `styled-components?

Here is a link to the repo: https://github.com/knightbk/styled-components-test

And here is a link to the codeclimate error message: https://codeclimate.com/github/knightbk/styled-components-test/builds/5

andrewkatz commented 4 years ago

This seems like not just an issue for styled components, but all of the "included" Stylelint config dependencies in this project. We're running into the same issue for the Stylelint Prettier plugin.

jfairley commented 4 years ago

Ditto for me with "stylelint-config-concentric-order".

Error: Could not find "stylelint-config-concentric-order". Do you need a `configBasedir`?
bmulholland commented 3 years ago

@gilbarbara I'd be happy to do a timeboxed attempt at this. Do you have any insights or educated guesses to get me started?

gilbarbara commented 3 years ago

Hey @bmulholland

I'd start with codeclimate engine documentation but basically, the code is analyzed statically against the engine, so the dependencies need to be configured in it.

Anyway, I've updated the dependencies.

Thanks

gilbarbara commented 3 years ago

@knightbk @andrewkatz

Codeclimate is running an older version of this engine that doesn't include these packages. They need to update it.

I've updated the dependencies in 2.3.0 (engine 13.7.2)

gilbarbara commented 3 years ago

@jfairley Added in 2.3.0

bmulholland commented 3 years ago

@gilbarbara Awesome, thank you! I've pinged CodeClimate to update their version, which hopefully they can do soon.

efueger commented 3 years ago

Hi @bmulholland - we've updated Code Climate's version to use these dependencies. Thanks for the nudge!

Cheers, Emily