Skip to content

Commit 13238e5

Browse files
author
gemini2035
committed
fix: prettier about
1 parent 6f6eb3e commit 13238e5

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"linkifyjs": "^3.0.5",
4545
"lodash-es": "^4.17.21",
4646
"normalize.css": "^8.0.1",
47+
"prettier": "^3.2.5",
4748
"react": "^18.0.0",
4849
"react-dom": "^18.0.0",
4950
"react-hook-form": "^7.33.1",
@@ -82,7 +83,6 @@
8283
"node-fetch": "^3.2.6",
8384
"npm-run-all2": "^6.0.2",
8485
"pinyin": "^3.0.0-alpha.5",
85-
"prettier": "^2.7.1",
8686
"simplebig": "^0.0.3",
8787
"tailwindcss": "^3.1.4",
8888
"typescript": "^4.6.3",

scripts/update-operators.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ async function main() {
1414
})
1515

1616
const prettierConfig = await prettier.resolveConfig(process.cwd())
17-
const formatted = prettier.format(content, {
17+
console.log(prettierConfig)
18+
const formatted = await prettier.format(content, {
1819
...prettierConfig,
1920
parser: 'json',
2021
})

src/models/generated/operators.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
"rarity": 4,
8989
"alt_name": "Shaw"
9090
},
91+
{
92+
"id": "char_4123_ela",
93+
"subProf": "traper",
94+
"name": "艾拉",
95+
"alias": "aila yila al yl 艾拉",
96+
"rarity": 6,
97+
"alt_name": "Ela"
98+
},
9199
{
92100
"id": "char_4043_erato",
93101
"subProf": "siegesniper",
@@ -488,6 +496,14 @@
488496
"rarity": 5,
489497
"alt_name": "Proviso"
490498
},
499+
{
500+
"id": "char_4126_fuze",
501+
"subProf": "centurion",
502+
"name": "导火索",
503+
"alias": "daohuosuo dhs 導火索",
504+
"rarity": 5,
505+
"alt_name": "Fuze"
506+
},
491507
{
492508
"id": "char_102_texas",
493509
"subProf": "pioneer",
@@ -1296,6 +1312,14 @@
12961312
"rarity": 6,
12971313
"alt_name": "Lee"
12981314
},
1315+
{
1316+
"id": "token_10033_ela_grzmot",
1317+
"subProf": "notchar1",
1318+
"name": "雷鸣地雷",
1319+
"alias": "leimingdilei leimingdelei lmdl 雷鳴地雷",
1320+
"rarity": 0,
1321+
"alt_name": "GRZMOT Mine"
1322+
},
12991323
{
13001324
"id": "char_107_liskam",
13011325
"subProf": "shotprotector",
@@ -2016,6 +2040,14 @@
20162040
"rarity": 4,
20172041
"alt_name": "Frostleaf"
20182042
},
2043+
{
2044+
"id": "char_4124_iana",
2045+
"subProf": "dollkeeper",
2046+
"name": "双月",
2047+
"alias": "shuangyue sy 雙月",
2048+
"rarity": 5,
2049+
"alt_name": "Iana"
2050+
},
20192051
{
20202052
"id": "char_437_mizuki",
20212053
"subProf": "stalker",
@@ -2632,6 +2664,14 @@
26322664
"rarity": 4,
26332665
"alt_name": "Ethan"
26342666
},
2667+
{
2668+
"id": "char_4125_rdoc",
2669+
"subProf": "instructor",
2670+
"name": "医生",
2671+
"alias": "yisheng ys 醫生",
2672+
"rarity": 5,
2673+
"alt_name": "Doc"
2674+
},
26352675
{
26362676
"id": "char_172_svrash",
26372677
"subProf": "lord",

0 commit comments

Comments
 (0)