Add ignores
configuration object property
#7449
Labels
status: needs discussion
triage needs further discussion
ignores
configuration object property
#7449
What is the problem you're trying to solve?
If we lint CSS files by default and add
files:[]
to the configuration object, it's likely people will reach forignoreFiles: []
to exclude directories. Its current behaviour is:ESLint introduces
ignores
with their flat config. It has a different behaviour toignoreFiles: []
, i.e. it supports unignoring files through negation rather than removing the defaults.This feels like a better behaviour as it is less likely people will want to include
node_modules
.What solution would you like to see?
Either add a new
ignores
property with that behaviour and deprecateignoreFiles: []
, or change theignoreFiles: []
behaviour in a major release. The former feels like it'll give us more wiggle room and can happen in16.x
alongside #3860.The text was updated successfully, but these errors were encountered: