-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
123 lines (123 loc) · 3.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "react-intl-linter",
"version": "2.0.1",
"publisher": "styx11",
"description": "vscode linter extension for react-intl",
"repository": "[email protected]:Styx11/react-intl-linter.git",
"author": "styx11 <[email protected]>",
"license": "Apache-2.0 License",
"private": true,
"categories": [],
"engines": {
"vscode": "^1.52.0"
},
"icon": "react-intl-linter.icon.png",
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascriptreact",
"onLanguage:javascript",
"onLanguage:html",
"onLanguage:vue"
],
"contributes": {
"configurationDefaults": {
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.autoIndent": "none"
}
},
"configuration": {
"type": "object",
"title": "ReactIntlLinter",
"properties": {
"reactIntlLinter.localLanguage": {
"type": "string",
"default": "zh",
"enum": [
"zh",
"en",
"jp",
"cht"
],
"enumDescriptions": [
"中文",
"英文",
"日文",
"繁体中文"
],
"markdownDescription": "本地语言,即代码中使用的本地语言"
},
"reactIntlLinter.localLanguageConfigName": {
"type": "string",
"default": "zh_CN",
"markdownDescription": "本地语言配置文件名(不包括后缀)"
},
"reactIntlLinter.intlLanguage": {
"type": "array",
"default": ["en"],
"items": {
"type": "string",
"enum": [
"zh",
"en",
"jp",
"cht"
],
"enumDescriptions": [
"中文",
"英文",
"日文",
"繁体中文"
]
},
"markdownDescription": "国际化语言,即支持的 react-intl 国际化目标语言"
},
"reactIntlLinter.intlLanguageConfigName": {
"type": "array",
"default": ["en_US"],
"items": {
"type": "string"
},
"markdownDescription": "国际化语言配置文件名数组(不包括后缀,**必须与国际化语言数组配置一一对应**)"
},
"reactIntlLinter.intlConfigPath": {
"type": "string",
"default": "src/intl",
"markdownDescription": "国际化配置文件夹路径名,例如 `src/intl`(相对于工作区跟路径)"
},
"reactIntlLinter.intlCode": {
"type": "string",
"default": "react-intl",
"enum": [
"react-intl",
"vue-i18n"
],
"markdownDescription": "期望转换的国际化框架,支持 `react-intl`,`vue-i18n`。\n`react-intl` 对应代码为 `intl.formatMessage({id: ...})` ,`vueI18n` 对应代码为 `$t('id')`"
}
}
}
},
"capabilities": {
"codeActionProvider": true
},
"main": "client/out/extension",
"scripts": {
"vscode:prepublish": "yarn compile",
"compile": "rimraf server/out && rimraf client/out && tsc -b",
"watch": "tsc -b -w",
"lint": "npm run lint:client && npm run lint:server",
"lint:client": "eslint --config ./client/.eslintrc.json ./client/src/*.ts",
"lint:server": "eslint --config ./server/.eslintrc.json ./server/src/*.ts",
"clean": "rimraf client/out && rimraf server/out",
"postinstall": "cd client && npm install && cd ../server && npm install && cd .."
},
"devDependencies": {
"@types/node": "^14.17.8",
"@typescript-eslint/parser": "^4.29.0",
"eslint": "^7.32.0",
"rimraf": "^3.0.2",
"typescript": "^4.3.5"
}
}