AtomMaterialUI/a-file-icon-idea

ESLint.config.js file showing the wrong icon

JamiesonRoberts opened this issue · 4 comments

Describe the bug
ESLint's new flat config files are now displaying the correct icon

To Reproduce
create a file with the filename of eslint.config.js and see that the icon is a JS icon instead of ESLint

Expected Behavior
It should show the ESLint icon

Environment
IntelliJ PHPStorm on Mac M1 - plugin version 93.1.0

As a follow up to this, it should be fairly easy to fix. I copied the syntax for prettier and tweaked for ESLint and it worked

^(\.eslint|eslint\.config)(\.[cm]?js|ts|json|ya?ml)?$ appears to work

you can open a PR if you want

@mallowigi I would love to, however I've never worked with a project in this language. I would love to contribute other changes as well, however I've never worked with Java before. Can you point me in the right direction where I can make that change?

https://github.com/mallowigi/iconGenerator

You need to add it to icon_associations.xml (or folder_associations for folders)

GitHub
Icon Collection used within the Atom Material Icons plugins (for JetBrains, Chrome and Firefox) - GitHub - mallowigi/iconGenerator: Icon Collection used within the Atom Material Icons plugins (for ...