feat: add lint-staged

This commit is contained in:
Yifei Zhang
2023-03-28 17:51:22 +00:00
parent 83400093a2
commit e648a59b1f
8 changed files with 467 additions and 61 deletions

View File

@@ -5,7 +5,7 @@ import TW from "./tw";
export type { LocaleType } from "./cn";
export const AllLangs = ["en", "cn", "tw"] as const;
type Lang = typeof AllLangs[number];
type Lang = (typeof AllLangs)[number];
const LANG_KEY = "lang";