file-icons / atom

Atom file-specific icons for improved visual grepping.
MIT License
1.31k stars 250 forks source link

Add variants for lint-staged config file #832

Closed ajotaos closed 3 years ago

ajotaos commented 3 years ago

Could this add the other variants for .lintstagedrc that are supported? https://www.npmjs.com/package/lint-staged#configuration

Alhadis commented 3 years ago

They're already supported. lint-staged doesn't have an icon of its own: the gear icon you're seeing for .lintstagedrc files is more-or-less a fallback for every file that starts with a dot.

If you want the gear icon to be shown for the other formats as well, add this to your stylesheet:

.icon[data-name="lint-staged.config.js"],
.icon[data-name^=".lintstagedrc"]{
    &[data-name$=".json"],
    &[data-name$=".yaml"],
    &[data-name$=".yml"],
    &[data-name$=".js"],
    &[data-name$=".cjs"]{
        &::before{
            content: "\f02f";
            font: 16px "Octicons Regular";
            top: 1px;
        }
    }
}