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

chore: put __tests__/.eslintrc.json in root's config's override #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nschonni
Copy link
Contributor

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • New rule
  • Changes an existing rule
  • Add autofixing to a rule
  • Other, please explain:

What changes did you make? (Give an overview)
Merged up the nested ESLint config to an override in the root one

@xjamundx
Copy link
Contributor

Tell me more about why this is better. The old way made sense to me. This also seems fine. Just wondering if there's a big benefit.

@nschonni
Copy link
Contributor Author

Yeah, either way is fine. Using the single file, you get to see all the rules and overrides in a single location when you want to add/remove plug-ins

@MichaelDeBoey MichaelDeBoey changed the title chore: merge __tests__ eslintrc.json with override chore: put __tests__/.eslintrc.json in root's config's override Sep 29, 2022
Comment on lines +31 to +35
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep this as __tests__/.eslintrc.json was

Suggested change
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"extends": ["plugin:jest/recommended"],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, overrides wipes out the whole property, that's why the full set of extends is required

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

Successfully merging this pull request may close these issues.

None yet

3 participants