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
Utility function to generate ignore patterns #997
Comments
@bradzacher before I start working on this one, just making sure - is this still something you're 👍 on? I personally am. |
Yeah sounds good. I guess exported from the Eventually I'd want it in our "core" package we use for flat configs. |
Hmm, most users don't take a direct dependency on that. I think it'd be simpler to export from There's actually some nontrivial logic here to account for path relativity. From https://eslint.org/docs/latest/user-guide/configuring/ignoring-code#ignorepatterns-in-config-files:
So I'll leave this for a while if someone else wants to take it on. 😄 |
Most users don't, no, as it's not necessary for config files. |
Yeah that makes sense. And the fact that 0 users have 👍d this issue or filed duplicates of it since September 2019 indicates to me that it's not a common request. Closing for the same reasons as #5908: there's no strong user demand to be met right now. |
Now that 2.0.0 requires all linted files to be included in projects it became even more important to ensure that eslint processes only actual source files. Today it's done with a
.eslintignore
file, but it can be quite hard to manage for projects with complex TypeScript configurations. Soon it would be possible to define ignored patterns in eslint config - eslint/eslint#12274, which means it can be generated from actual patterns used to create programs. That also may simplify transition from TSLint, which processed only files included in tsconfig by default.The new API could look like:
The text was updated successfully, but these errors were encountered: