Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find "stylelint-config-recess-order". Do you need a configBasedir? #50

Open
starikcetin opened this issue Feb 28, 2021 · 2 comments

Comments

@starikcetin
Copy link

starikcetin commented Feb 28, 2021

I am getting the following error:

•• Timing: .engineConfig: 0.025s
Error: Could not find "stylelint-config-recess-order". Do you need a `configBasedir`?
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.

This is my stylelint.config.js file:

const rootNodeModulesPath = require('path').resolve(
  __dirname,
  '..',
  'node_modules'
);

const getAbsolutePath = (name) => `${rootNodeModulesPath}/${name}`;

const extendsNames = [
  'stylelint-config-standard',
  'stylelint-config-sass-guidelines',
  'stylelint-config-recess-order',
];

const extendsPaths = extendsNames.map(getAbsolutePath);

module.exports = {
  extends: extendsPaths,
  plugins: [],
  rules: {
    'order/properties-alphabetical-order': null,
    'max-nesting-depth': null,
    'selector-max-id': null,
  },
};

Everything works fine when I run stylelint locally via CLI.

Any ideas on how to fix this?
Thanks.


This is the extend that the error message mentions: https://github.com/stormwarning/stylelint-config-recess-order

@gilbarbara
Copy link
Owner

Hey @starikcetin

stylelint-config-recess-order isn't included in this engine dependencies.
Codeclimate doesn't install your dependencies, that's why it works locally.

@starikcetin
Copy link
Author

Hey @starikcetin

stylelint-config-recess-order isn't included in this engine dependencies.
Codeclimate doesn't install your dependencies, that's why it works locally.

So, is there any way of fixing this? How can I tell CodeClimate to install my dependencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants