Merge pull request #59 from LingandRX/develop

fix: correct default_locale to zh_CN
This commit is contained in:
LingandRX
2026-06-02 14:18:20 +08:00
committed by GitHub
6 changed files with 22 additions and 4 deletions
+4
View File
@@ -1 +1,5 @@
# 后台运行类型检查,结果输出到 stderr 但不阻塞提交
npx tsc --noEmit &
# 前台运行 lint-staged(自动修复 + 格式化)
npx lint-staged
+6
View File
@@ -0,0 +1,6 @@
# pre-push: 严格检查,阻塞有问题的代码推送到远程
# 类型检查
npx tsc --noEmit
# ESLint 严格检查(不允许 warning
npx eslint . --max-warnings=0
+9 -1
View File
@@ -1,4 +1,12 @@
/* global process */
const isCI = process.env.CI === 'true';
export default {
'*.{ts,tsx,js,jsx,mjs}': ['eslint --fix --max-warnings=0 --no-warn-ignored', 'prettier --write'],
'*.{ts,tsx,js,jsx,mjs}': [
'eslint --fix --no-warn-ignored',
...(isCI ? ['eslint --max-warnings=0'] : []),
'prettier --write',
],
'*.{json,css,scss,md}': ['prettier --write'],
};
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "testing-tools",
"description": "A browser extension providing useful testing tools including timestamp conversion and storage management",
"private": false,
"version": "1.0.0",
"version": "1.0.6",
"license": "MIT",
"type": "module",
"scripts": {
+1 -1
View File
@@ -45,7 +45,7 @@ export default defineConfig({
name: 'Testing Tool',
description: 'A tool for testing web applications.',
version_name: undefined,
default_locale: 'zh',
default_locale: 'zh_CN',
permissions: [
'storage',
'unlimitedStorage',