-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
155 lines (155 loc) · 5 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "fix-all-json",
"displayName": "Fix All JSON",
"description": "Fix missing & trailing commas + extras",
"publisher": "zardoy",
"version": "0.0.0-dev",
"preview": true,
"web": true,
"keywords": [
"json",
"auto insert",
"commas",
"insert",
"fix"
],
"categories": [
"Other"
],
"contributes": {
"commands": [
{
"command": "fixFile",
"title": "Fix Current JSON File"
}
],
"configuration": {
"properties": {
"enableFixes": {
"type": "object",
"description": "Which fixes to enable on save",
"properties": {
"insertMissingCommas": {
"type": "boolean",
"default": true
},
"insertMissingColon": {
"type": "boolean",
"default": true
},
"removeTrailingCommas": {
"type": "boolean",
"description": "Remove trailing comma",
"default": true
},
"removeComments": {
"type": "boolean",
"default": false
},
"fixDoubleQuotes": {
"type": "boolean",
"default": true
}
},
"default": {
"insertMissingCommas": true,
"insertMissingColon": true,
"removeTrailingCommas": true,
"removeComments": false,
"fixDoubleQuotes": true
},
"additionalProperties": false
},
"enableIndividualCodeActions": {
"type": "boolean",
"description": "Wether to enable all types of code fixes for individual problems",
"default": true
},
"insertMissingCommaOnEnter": {
"type": "boolean",
"default": true,
"markdownDescription": "Insert missing comma after \"Enter\". Works only if JSON line ends with `}`, `]`, `\"`, `true`/`false`, number or null"
},
"insertMissingDoubleQuotesOnColon": {
"type": "boolean",
"default": true,
"markdownDescription": "Insert missing double quotes after \":\""
}
}
},
"jsonValidation": [
{
"fileMatch": "**/settings.json",
"url": "./resources/settings.schema.json"
}
]
},
"activationEvents": [
"onLanguage:json",
"onLanguage:jsonc",
"onCommands"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"release": {
"preset": {
"runTest": false
}
},
"icon": "resources/icon.png",
"author": "Vitaly Turovsky <[email protected]>",
"license": "MIT",
"private": true,
"scripts": {
"start": "vscode-framework start",
"start-web": "vscode-framework start --web",
"build": "tsc && vscode-framework build",
"lint": "eslint src/**",
"integration-test": "rimraf -rf ./testsOut/ .vscode-test/user-data/User/settings.json && tsc -p tsconfig.test.json && node testsOut/runTests.js",
"integration-test:watch": "chokidar \"test/integration/**\" -c \"pnpm integration-test\" --initial"
},
"pnpm": {
"overrides": {
"esbuild": "^0.14.10"
}
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.0",
"@types/node": "^16.11.12",
"@types/vscode": "^1.62.0",
"@zardoy/tsconfig": "^1.2.2",
"chokidar-cli": "^3.0.0",
"cross-env": "^7.0.3",
"escape-string-regexp": "4.0.0",
"eslint": "^8.18.0",
"eslint-config-zardoy": "^0.2.15",
"mocha": "^10.1.0",
"rimraf": "^3.0.2",
"typescript": "^5.1.3"
},
"dependencies": {
"@vscode/test-electron": "^2.3.3",
"@zardoy/utils": "^0.0.10",
"@zardoy/vscode-utils": "^0.0.46",
"chai": "^4.3.7",
"glob": "^8.0.3",
"string-dedent": "^3.0.1",
"strip-json-comments": "^5.0.0",
"vscode-framework": "^0.0.18"
},
"prettier": {
"semi": false,
"singleQuote": true,
"proseWrap": "never",
"tabWidth": 4,
"trailingComma": "all",
"arrowParens": "avoid",
"printWidth": 160,
"endOfLine": "auto"
}
}