Skip to content

Commit

Permalink
Add support for eslint.config.js (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: Alhadis <[email protected]>
  • Loading branch information
DeadlyMissile and Alhadis authored Jul 14, 2023
1 parent 6eeca75 commit 2b897cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
----------------------
### Added
- **New icons:** Art Text 4 (`.art4` directories), Bikeshed (`.bs`), dotenv (`.env{,.*}`), Figma (`.figma`), Imgbot (`.imgbotconfig`), Mint (`.mint`), PhotoRec (`.photorec.cfg`), ShellCheck (`.shellcheckrc`), Sponge-powered Mixin (`.mixin{,s}.json`), Windi CSS (`windi.config.{ts,js}`)
- **Support:** 3D Asset (`.hlsl`, `.cginc`, `.fxh`, `.hlsli`), Adobe CC (`.cclibs`), Adobe Illustrator (`.aia`), Adobe Photoshop (`.atn`), Appcelerator Titanium (`.tss`), Atom (`.atomignore`), Audio (`.spc`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), Config (`.inf`, `.kys_mac`, `.rhashrc`), Config: Python (`.flake8`), DC (`.dc`, `.dcrc`), Database (`fc-list`, `hosts`, `MANIFEST.MF`, `.tgn`), Deno (`deno.json{,c}`), Docker (`Containerfile`), EditorConfig (`.ecrc`), Elixir (`.heex`, `.html.heex`), Generic (`.ed`), Git (`.lfsconfig`, `gitignore{_,-}global`, `.git-blame-ignore-revs`), GLSL (`.rchit`, `.rmiss`), Gnuplot (`gnuplotrc`, `.gnuplot_history`), Godot (`.gdshader`), Grammar (`.grammar`), HTML (`.hta`), KiCad (`.kicad_{dru,sch,pro,prl,sym}`, `fp-info-cache`, `sym-lib-table`), Mail (`.eml`, `.mbox`, `.mbx`), Makefile (`.{mk,mak,make}file`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), Python (`.python_history`), Quasar (`quasar.config.{c,m,}{j,t}s`), Readme (`CITATION{.cff,S,}`, `.ens`, `.enw`, `.enf`, `.enlp`, `.enlx`, `.enl`, `.enq`, `.ens`, `.entl`, `.enw`, `.enz`, `.es1`, `.nbib`, `.ris{,-rm8}`), Roff (`*.cstr`, `cstr.54`, `indep_tr`), Safari (`.binarycookies`), Shell (`{.,}{m,pd,}ksh{,rc}`), SQL (`.sqlite_history`), Tagfile (`.sfv`), TextMate (`.tm_properties`, `.tmProperties`), TypeScript (`.cts`, `.mts`), Units (`units.dat`, `unittab`), XML (`.xmp`), Yacc (`.ypp`)
- **Support:** 3D Asset (`.hlsl`, `.cginc`, `.fxh`, `.hlsli`), Adobe CC (`.cclibs`), Adobe Illustrator (`.aia`), Adobe Photoshop (`.atn`), Appcelerator Titanium (`.tss`), Atom (`.atomignore`), Audio (`.spc`), BC (`.bc`, `bc.library`), Checksum lists (`{.,}{check,ck,crc{,32},md5,rmd160,sha{1..3,224,384,512}}sum{,s}`), Config (`.inf`, `.kys_mac`, `.rhashrc`), Config: Python (`.flake8`), DC (`.dc`, `.dcrc`), Database (`fc-list`, `hosts`, `MANIFEST.MF`, `.tgn`), Deno (`deno.json{,c}`), Docker (`Containerfile`), EditorConfig (`.ecrc`), Elixir (`.heex`, `.html.heex`), ESLint (`eslint.config.js`), Generic (`.ed`), Git (`.lfsconfig`, `gitignore{_,-}global`, `.git-blame-ignore-revs`), GLSL (`.rchit`, `.rmiss`), Gnuplot (`gnuplotrc`, `.gnuplot_history`), Godot (`.gdshader`), Grammar (`.grammar`), HTML (`.hta`), KiCad (`.kicad_{dru,sch,pro,prl,sym}`, `fp-info-cache`, `sym-lib-table`), Mail (`.eml`, `.mbox`, `.mbx`), Makefile (`.{mk,mak,make}file`), Maps (`.mapping`, `.tiny`, `.tinyv2`, `.enigma`, `.match`, `.unpick`), PEG.js (`.peggy`), Python (`.python_history`), Quasar (`quasar.config.{c,m,}{j,t}s`), Readme (`CITATION{.cff,S,}`, `.ens`, `.enw`, `.enf`, `.enlp`, `.enlx`, `.enl`, `.enq`, `.ens`, `.entl`, `.enw`, `.enz`, `.es1`, `.nbib`, `.ris{,-rm8}`), Roff (`*.cstr`, `cstr.54`, `indep_tr`), Safari (`.binarycookies`), Shell (`{.,}{m,pd,}ksh{,rc}`), SQL (`.sqlite_history`), Tagfile (`.sfv`), TextMate (`.tm_properties`, `.tmProperties`), TypeScript (`.cts`, `.mts`), Units (`units.dat`, `unittab`), XML (`.xmp`), Yacc (`.ypp`)
- Improved modeline support for [Less](https://lesscss.org/) stylesheets

### Fixed
Expand Down
1 change: 1 addition & 0 deletions config.cson
Original file line number Diff line number Diff line change
Expand Up @@ -2344,6 +2344,7 @@ fileIcons:
match: [
[/\.eslint(cache|ignore)$/i, "medium-purple"]
[/\.eslintrc($|\.)/i, "light-purple"]
[/^eslint\.config\.js$/i, "light-purple"]
]

ExtJS:
Expand Down
2 changes: 1 addition & 1 deletion lib/icons/.icondb.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = [
["ember-icon",["medium-red","medium-red"],/^ember(?:\.|(?:-[^.]+)?-(?:\d+\.)+(?:debug\.)?)[cm]?js$/i,2],
["esdoc-icon",["medium-red","medium-red"],/^\.?esdoc\.(?:[cm]?js|json)$/i,2],
["eslint-icon",["medium-purple","medium-purple"],/\.eslint(?:cache|ignore)$/i,2],
["eslint-icon",["light-purple","light-purple"],/\.eslintrc(?:$|\.)/i,2],
["eslint-icon",["light-purple","light-purple"],/\.eslintrc(?:$|\.)|^eslint\.config\.js$/i,2],
["extjs-icon",["light-green","light-green"],/\bExtjs(?:-ext)?\.[cm]?js$/i,2],
["fabfile-icon",["medium-blue","medium-blue"],/^fabfile\.py$/i,2],
["fabric-icon",["medium-orange","dark-orange"],/^fabric\.mod\.json$/i,2],
Expand Down

0 comments on commit 2b897cb

Please sign in to comment.