Closed nzakas closed 2 weeks ago
Makes sense to me, marked as accepted.
await includeIgnoreFile(".gitignore", __dirname),
I'm wondering if this function needs to be async, as that would make the use of it complicated in CommonJS config files.
I suppose we could do it synchronously.
Working on this.
How about reading multiple .gitignore
files? I have a monorepo where each package has its own .gitignore file.
Which packages would you like to change?
@eslint/compat
@eslint/config-array
@eslint/migrate-config
@eslint/object-schema
What problem do you want to solve?
In v8, people pass
--ignore-path .gitignore
in order to use.gitignore
patterns with ESLint.In v9, there is no obvious way to use the
.gitignore
patterns in aneslint.config.js
file, leaving people confused.What do you think is the correct solution?
migrate-config
intocompat
and export it, making it available to end users.includeIgnoreFile()
function that reads in an ignore file and automatically converts into the format that the config file needs, such that we can do this:Participation
Additional comments
No response