Closed tlkiong closed 3 months ago
@eslint/compat
@eslint/config-array
@eslint/core
@eslint/migrate-config
@eslint/object-schema
@eslint/plugin-kit
Node version: 22.2.0 npm version: 10.7.0 ESLint version: 8.5.0 Operating System: MacOS Sonoma 14.0
export default [ includeIgnoreFile(gitignorePath), ]
Expect dist/ dir to be ignored
dist/
Wasn't ignored
-
As mentioned https://github.com/eslint/eslint/issues/18723, the config of in `eslint.config.js:
export default [ includeIgnoreFile(gitignorePath), // putting other config here ]
Will not work. However, doing:
export default [ { ignores: includeIgnoreFile(gitignorePath).ignores }, // putting other config here ]
work
The compat package is for use with ESLint v9 and higher. If you upgrade, it should work just fine.
compat
We'll also be fixing this in v8.x, which is being tracked on https://github.com/eslint/eslint/issues/18723
Which packages are affected?
@eslint/compat
@eslint/config-array
@eslint/core
@eslint/migrate-config
@eslint/object-schema
@eslint/plugin-kit
Environment
Node version: 22.2.0 npm version: 10.7.0 ESLint version: 8.5.0 Operating System: MacOS Sonoma 14.0
What did you do?
What did you expect to happen?
Expect
dist/
dir to be ignoredWhat actually happened?
Wasn't ignored
Link to Minimal Reproducible Example
-
Participation
Additional comments
As mentioned https://github.com/eslint/eslint/issues/18723, the config of in `eslint.config.js:
Will not work. However, doing:
work