clarifynl / eslint-config-clarify

Eslint configuration for Clarify projects
MIT License
0 stars 0 forks source link

Failed to load config "airbnb" to extend from #1

Open Twansparant opened 2 years ago

Twansparant commented 2 years ago

When I try to use this package in my eslintrc.js like this:

module.exports = {
    root: true,
    extends: ['clarify'],
};

I get an error in my js compiler:

Failed to load config "airbnb" to extend from.                                                                                             ││Referenced from: /Users/toinekamps/Documents/Clarify/Projects/rid/werkenbij.rid.nl/site/web/app/themes/werkenbijrid/node_modules/eslint-con││fig-clarify/rules/base.js

When I manually install eslint-config-airbnb myself, I get the following error:

│.eslintrc.js » eslint-config-clarify » ./rules/base » eslint-config-airbnb » /Users/username/path/to/my/project/node_modules/eslint-config-airbnb/rules/react.js:                                                     ││Configuration for rule "react/function-component-definition" is invalid:                                                                   ││Value ["function-declaration","function-expression"] should be equal to one of the allowed values.   
Monokai commented 2 years ago

Just created an empty project via npm init and added a .eslintrc.js like you have, and did a npm install --save-dev github:clarifynl/eslint-config-clarify. After I create a simple index.js with some code, eslint works fine, so I'm not sure what's going on. Do you have the same error when you create an empty project?

Twansparant commented 2 years ago

Haven't got the chance to test that yet, but it happens on a clean install of the latest Sage 10 with their Bud asset builder. I tried replacing their @roots/eslint-config/sage with ours clarify: https://docs.roots.io/sage/10.x/compiling-assets/#linting