eslint / config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
https://www.npmjs.com/package/@eslint/config-inspector
Apache License 2.0
730 stars 19 forks source link

fix: improved check of whether ignore is global #84

Closed voxpelli closed 3 months ago

voxpelli commented 3 months ago

Fixes #80

Alternative solution would be:

Object.keys(config).length > 2

But I think its clearer when the two indexes are checked explicitly ('index' being one added by config inspector)