Skip to content

Commit

Permalink
add json5/jsonc
Browse files Browse the repository at this point in the history
Since v2 hasn't moved in... two years... this could've been added by now...

Closes #4997

Credit goes to: #3584 - From 2021...
  • Loading branch information
notAreYouScared committed Feb 9, 2024
1 parent f0489f6 commit 941977f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const modes: Mode[] = [
{
name: 'JSON',
mime: 'application/json',
mimes: ['application/json', 'application/x-json'],
mimes: ['application/json', 'application/x-json', 'application/json5' ],

Check failure on line 46 in resources/scripts/modes.ts

View workflow job for this annotation

GitHub Actions / Lint

Delete `·`
mode: 'javascript',
ext: ['json', 'map'],
ext: ['json', 'map', 'json5', 'jsonc' ],

Check failure on line 48 in resources/scripts/modes.ts

View workflow job for this annotation

GitHub Actions / Lint

Delete `·`
alias: ['json5'],
},
{ name: 'Lua', mime: 'text/x-lua', mode: 'lua', ext: ['lua'] },
Expand Down

0 comments on commit 941977f

Please sign in to comment.