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

Using specific configs throws errors #64

Open
mrmattrc opened this issue Jan 7, 2022 · 2 comments
Open

Using specific configs throws errors #64

mrmattrc opened this issue Jan 7, 2022 · 2 comments

Comments

@mrmattrc
Copy link

mrmattrc commented Jan 7, 2022

When I run the standard lint script, it runs as expected. However, when I use a more specific config as documented in the README, it throws an error: Error: Failed to load config "plugin:testing-library/recommended" to extend from. In particular, I am trying to use the Next.js or React configs. I've also added "eslint-plugin-testing-library": "^5.0.1" to my project, but it still has the same behavior.

Next.js

{
    "extends": ["@nick-mazuk/eslint-config/next"]
}

React

{
    "extends": ["@nick-mazuk/eslint-config/react"]
}
@mrmattrc
Copy link
Author

mrmattrc commented Jan 7, 2022

This line appears to be causing the issue, but I'm not sure why yet.

@Nick-Mazuk
Copy link
Owner

Hi @mrmattrc,

My guess is that eslint-plugin-testing-library depends on react-testing-library. On all my React projects, I used that library to unit test components.

However, I'm no longer using React in my personal projects (I've switched to Svelte), so feel free to create a quick PR removing that plugin from the React config.

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