8000 chore(deps): update all dependencies (#477) · un-ts/prettier@953fc3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 953fc3e

Browse files
chore(deps): update all dependencies (#477)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JounQin <admin@1stg.me>
1 parent 8f1aef9 commit 953fc3e

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
"@types/node": "^22.15.29",
4646
"@types/react": "^19.1.6",
4747
"@types/react-dom": "^19.1.6",
48-
"@types/web": "^0.0.238",
48+
"@types/web": "^0.0.239",
4949
"@vitejs/plugin-react-swc": "^3.10.1",
5050
"@vitest/coverage-istanbul": "^3.2.1",
5151
"@vitest/eslint-plugin": "^1.2.1",
5252
"clean-pkg-json": "^1.3.0",
5353
"eslint": "^9.28.0",
5454
"eslint-plugin-tsdoc": "^0.4.0",
5555
"github-markdown-css": "^5.8.1",
56-
"linguist-languages": "^7.31.2",
56+
"linguist-languages": "^8.0.0",
5757
"nano-staged": "^0.8.0",
5858
"npm-run-all2": "^8.0.4",
5959
"prettier": "^3.5.3",

scripts/languages.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs'
22

3-
import LinguistLanguages from 'linguist-languages'
3+
import * as linguistLanguages from 'linguist-languages'
44
import type { SupportLanguage } from 'prettier'
55

66
const EXTRA_SH_LANGUAGES: SupportLanguage[] = [
@@ -41,24 +41,21 @@ const getSupportedLanguages = (
4141
aceModes: string[] = [parser],
4242
excludeNames?: string[],
4343
) =>
44-
Object.values(LinguistLanguages).reduce<SupportLanguage[]>(
44+
Object.values(linguistLanguages).reduce<SupportLanguage[]>(
4545
(
4646
acc,
47-
{
48-
aceMode,
49-
name,
50-
type: _type,
51-
color: _color,
52-
languageId: linguistLanguageId,
53-
...rest
54-
},
47+
{ aceMode, name, type: _type, languageId: linguistLanguageId, ...rest },
5548
) => {
5649
if (!aceModes.includes('all') && !aceModes.includes(aceMode)) {
5750
return acc
5851
}
5952
if (excludeNames?.includes(name)) {
6053
return acc
6154
}
55+
if ('color' in rest) {
56+
// @ts-expect-error -- annoying
57+
delete rest.color
58+
}
6259
acc.push({
6360
name,
6461
aceMode,

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4613,10 +4613,10 @@ __metadata:
46134613
languageName: node
46144614
linkType: hard
46154615

4616-
"@types/web@npm:^0.0.238":
4617-
version: 0.0.238
4618-
resolution: "@types/web@npm:0.0.238"
4619-
checksum: 10c0/c35960c5b785542af2d85181018d0728c8b911ce1307a591e82c60069a44055892c56d9853204770db22197fa4cec3c4ffa854353272a40078bcb4e635255acd
4616+
"@types/web@npm:^0.0.239":
4617+
version: 0.0.239
4618+
resolution: "@types/web@npm:0.0.239"
4619+
checksum: 10c0/d44aaf050c11d832735cbe8bb71ed20d96204d91a3f5cbcf3218e9afd4ead4e6ffae31c88364147b60d5dc4fd354bbe0763e165745e3cddb97bf877eed4a0418
46204620
languageName: node
46214621
linkType: hard
46224622

@@ -4908,15 +4908,15 @@ __metadata:
49084908
"@types/node": "npm:^22.15.29"
49094909
"@types/react": "npm:^19.1.6"
49104910
"@types/react-dom": "npm:^19.1.6"
4911-
"@types/web": "npm:^0.0.238"
4911+
"@types/web": "npm:^0.0.239"
49124912
"@vitejs/plugin-react-swc": "npm:^3.10.1"
49134913
"@vitest/coverage-istanbul": "npm:^3.2.1"
49144914
"@vitest/eslint-plugin": "npm:^1.2.1"
49154915
clean-pkg-json: "npm:^1.3.0"
49164916
eslint: "npm:^9.28.0"
49174917
eslint-plugin-tsdoc: "npm:^0.4.0"
49184918
github-markdown-css: "npm:^5.8.1"
4919-
linguist-languages: "npm:^7.31.2"
4919+
linguist-languages: "npm:^8.0.0"
49204920
nano-staged: "npm:^0.8.0"
49214921
npm-run-all2: "npm:^8.0.4"
49224922
prettier: "npm:^3.5.3"
@@ -9912,10 +9912,10 @@ __metadata:
99129912
languageName: node
99139913
linkType: hard
99149914

9915-
"linguist-languages@npm:^7.31.2":
9916-
version: 7.31.2
9917-
resolution: "linguist-languages@npm:7.31.2"
9918-
checksum: 10c0/ed28967c5e3088ddf4de0363de0c7cbbe03d8dbe91655edfce440b84c51aeac1c295df8807c05ae23411246d6c2f3155da2cceda8ed678e8476d0e0d16d5cb15
9915+
"linguist-languages@npm:^8.0.0":
9916+
version: 8.0.0
9917+
resolution: "linguist-languages@npm:8.0.0"
9918+
checksum: 10c0/eaae46254247b9aa5b287ac98e062e7fe859314328ce305e34e152bc7bb172d69633999320cb47dc2a710388179712a76bb1ddd6e39e249af2684a4f0a66256c
99199919
languageName: node
99209920
linkType: hard
99219921

0 commit comments

Comments
 (0)
0