In package.json, the lint script uses --ignore-pattern dist-docs, whereas other build directories like dist are ignored in eslint.config.js directly via the ignores array. Also, .prettierignore correctly ignores dist-docs. The eslint.config.js should be updated to include dist-docs/** in its ignores array to remove the need for the CLI flag.
In
package.json, the lint script uses--ignore-pattern dist-docs, whereas other build directories likedistare ignored ineslint.config.jsdirectly via theignoresarray. Also,.prettierignorecorrectly ignoresdist-docs. Theeslint.config.jsshould be updated to includedist-docs/**in itsignoresarray to remove the need for the CLI flag.