Merge pull request #59 from LingandRX/develop
fix: correct default_locale to zh_CN
This commit is contained in:
+5
-1
@@ -1 +1,5 @@
|
|||||||
npx lint-staged
|
# 后台运行类型检查,结果输出到 stderr 但不阻塞提交
|
||||||
|
npx tsc --noEmit &
|
||||||
|
|
||||||
|
# 前台运行 lint-staged(自动修复 + 格式化)
|
||||||
|
npx lint-staged
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# pre-push: 严格检查,阻塞有问题的代码推送到远程
|
||||||
|
# 类型检查
|
||||||
|
npx tsc --noEmit
|
||||||
|
|
||||||
|
# ESLint 严格检查(不允许 warning)
|
||||||
|
npx eslint . --max-warnings=0
|
||||||
@@ -1,4 +1,12 @@
|
|||||||
|
/* global process */
|
||||||
|
|
||||||
|
const isCI = process.env.CI === 'true';
|
||||||
|
|
||||||
export default {
|
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'],
|
'*.{json,css,scss,md}': ['prettier --write'],
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "testing-tools",
|
"name": "testing-tools",
|
||||||
"description": "A browser extension providing useful testing tools including timestamp conversion and storage management",
|
"description": "A browser extension providing useful testing tools including timestamp conversion and storage management",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.0",
|
"version": "1.0.6",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ export default defineConfig({
|
|||||||
name: 'Testing Tool',
|
name: 'Testing Tool',
|
||||||
description: 'A tool for testing web applications.',
|
description: 'A tool for testing web applications.',
|
||||||
version_name: undefined,
|
version_name: undefined,
|
||||||
default_locale: 'zh',
|
default_locale: 'zh_CN',
|
||||||
permissions: [
|
permissions: [
|
||||||
'storage',
|
'storage',
|
||||||
'unlimitedStorage',
|
'unlimitedStorage',
|
||||||
|
|||||||
Reference in New Issue
Block a user