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

[Feature request]: ignorePatterns in .eslintrc.json #2398

Closed
matthew-dean opened this issue Feb 12, 2024 · 5 comments
Closed

[Feature request]: ignorePatterns in .eslintrc.json #2398

matthew-dean opened this issue Feb 12, 2024 · 5 comments
Labels
good first issue Experience Level - Good for newcomers

Comments

@matthew-dean
Copy link

Sometimes it's just nicer to have fewer files. It would be nice if ignorePatterns was supported in oxlint. https://eslint.org/docs/latest/use/configure/ignore#ignorepatterns-in-config-files

@andymac4182
Copy link
Contributor

I had to use ignore patterns due to eslintignore not being looked for in parent folders. This would be great to have 😀

@mysteryven
Copy link
Contributor

due to eslintignore not being looked for in parent folders

Could you please explain more about this? @andymac4182

@andymac4182
Copy link
Contributor

From the eslint docs (https://eslint.org/docs/latest/use/configure/ignore)

When ESLint is run, it looks in the current working directory to find an .eslintignore file before determining which files to lint.

vs the config file (https://eslint.org/docs/latest/use/configure/configuration-files)

ESLint automatically looks for them in the directory of the file to be linted, and in successive parent directories all the way up to the root directory of the filesystem (/), the home directory of the current user (~/), or when root: true is specified.

If you include the ignorePatterns in the config file then you can load them when running eslint lower in the tree.

@matthew-dean
Copy link
Author

Yeah I don't think there's monorepo / extends support yet.

@Boshen Boshen added the good first issue Experience Level - Good for newcomers label Dec 1, 2024
@Boshen
Copy link
Member

Boshen commented Dec 1, 2024

#7092

@Boshen Boshen closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Experience Level - Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants