You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESLint special parser doesn't recognize eslint.config.js as an ESLint flat config file. Mostly it imports and uses packages like any other JS file, but compatibility features still may have dependencies in string literals similar to the old config.
Code snippets
Where the dependency is used:
// in eslint.config.js
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});
const airbnb = compat.extends('airbnb');
Sorry for filing quite a few bugs! But I hope this will be the last one for now.
BONUS POINTS: If you wish to help us debug further, the depcheck --json option will show more information. Check here in the README for documentation on json output.
The text was updated successfully, but these errors were encountered:
Bug Description
ESLint special parser doesn't recognize
eslint.config.js
as an ESLint flat config file. Mostly it imports and uses packages like any other JS file, but compatibility features still may have dependencies in string literals similar to the old config.Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
This also applies to import resolvers etc. See https://github.com/eslint/eslintrc?tab=readme-ov-file#usage-esm for details on
FlatCompat
.Versions
node -v
: v18.17.0npm -v
: 9.6.7depcheck --version
: 1.4.7Extra info
Sorry for filing quite a few bugs! But I hope this will be the last one for now.
BONUS POINTS: If you wish to help us debug further, the
depcheck --json
option will show more information. Check here in the README for documentation on json output.The text was updated successfully, but these errors were encountered: