Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Eslint should ignore parent .eslintrc configuration #7148

Closed
hsingyuc opened this issue Sep 14, 2022 · 0 comments · Fixed by #7149
Closed

Eslint should ignore parent .eslintrc configuration #7148

hsingyuc opened this issue Sep 14, 2022 · 0 comments · Fixed by #7149
Labels
type: bug The issue/PR concerns a confirmed bug.

Comments

@hsingyuc
Copy link
Contributor

Describe the bug

Eslint uses both the parent and the current repo's eslint config file.

Similiar issue woocommerce/woocommerce-gateway-stripe#2413

Screen Shot 2022-09-13 at 10 24 46 PM

To reproduce

  1. Create a woopay docker instance
  2. Clone the woocommerce-blocks plugin to woopay/docker/wordpress/wp-content/plugins/woocommerce-blocks
  3. Run npx eslint --debug .eslintrc.js to see eslint is using the config file from woopay

Expected behavior

woocommerce-blocks should use its own eslint config file

@hsingyuc hsingyuc added the type: bug The issue/PR concerns a confirmed bug. label Sep 14, 2022
@opr opr closed this as completed in #7149 Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant