I'm enjoying this eslint config more and more lately, but I'm also noticing that I need to understand flat configs a bit more.
One particular aspect I'm not fully understanding is how to ignore files:
reading the official eslint docs I do see that I should write something like this to ignore two specific folder and files:
// eslint.config.js
import { nuxt, stefanobartoletti, tailwind } from '@stefanobartoletti/eslint-config'
export default stefanobartoletti(
{},
nuxt,
tailwind,
{
rules: {
// my rules
},
ignores: [
'folder/subFolder/**', // This does NOT ignore all subsubfolders and files
'otherFolder/*.html', // This does NOT ignore `.html` files in that folder
],
},
)
but since it doesn't work I tried to pass them to antfu's config and for some reason it works:
// eslint.config.js
import { nuxt, stefanobartoletti, tailwind } from '@stefanobartoletti/eslint-config'
export default stefanobartoletti(
{
ignores: [
'folder/subFolder/**', // This will ignore all subsubfolders and files
'otherFolder/*.html', // This will ignore only `.html` files in that folder
],
},
nuxt,
tailwind,
{
rules: {
// my rules
},
},
)
So at this point I'm not sure if this is me not understanding or there is a bug