file-icons / atom

Atom file-specific icons for improved visual grepping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add variants for lint-staged config file

ajotaos opened this issue · comments

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

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;
		}
	}
}