-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
287 lines (287 loc) · 9.11 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"name": "sql-formatter-vsc",
"displayName": "SQL Formatter VSCode",
"description": "Official VSCode Extension of SQL Formatter library",
"version": "4.1.6",
"publisher": "ReneSaarsoo",
"contributors": [
"Ben (benfdking)",
"Boris Verkhovskiy <[email protected]>",
"Heungsub Lee <[email protected]>",
"Hisaki Akaza (the-red)",
"inferrinizzard <[email protected]>",
"Justin Carrus <[email protected]>",
"Rene Saarsoo <[email protected]>",
"Sean Song <[email protected]>",
"Tomoyuki Saoi <[email protected]>"
],
"license": "MIT",
"icon": "sql-formatter-icon.png",
"engines": {
"vscode": "^1.75.0"
},
"repository": {
"type": "git",
"url": "https://github.com/sql-formatter-org/sql-formatter-vscode"
},
"bugs": {
"url": "https://github.com/sql-formatter-org/sql-formatter/issues"
},
"categories": [
"Formatters",
"Other"
],
"keywords": [
"bigquery",
"db2",
"db2i",
"hive",
"formatter",
"mariadb",
"mssql",
"mysql",
"node",
"n1ql",
"plsql",
"pl/sql",
"postgres",
"postgresql",
"presto",
"prettier",
"redshift",
"singlestoredb",
"snowflake",
"spark",
"sparksql",
"sql",
"sqlite",
"sql server",
"tidb",
"trino",
"transactsql",
"tsql"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"browser": "./out/extension.js",
"scripts": {
"clean": "rimraf out .vscode-test",
"compile": "tsc --project ./tsconfig.json",
"compile:types": "tsc --emitDeclarationOnly --project ./tsconfig.json",
"watch": "tsc --watch --project ./",
"build": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"build:prod": "yarn run build --minify && yarn run compile:types",
"build:dev": "yarn run build --sourcemap && yarn run compile:types",
"vscode:prepublish": "yarn run build:prod",
"lint": "eslint src --ext ts",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js",
"vsce:package": "vsce package",
"vsce:publish": "vsce publish",
"run-in-browser": "vscode-test-web --browserType=chromium --open-devtools --extensionDevelopmentPath=. ."
},
"dependencies": {
"sql-formatter": "^15.4.9"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@vscode/test-electron": "^2.3.8",
"@vscode/test-web": "^0.0.44",
"esbuild": "^0.18.19",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"glob": "^8.0.0",
"mocha": "^10.2.0",
"prettier": "^3.0.1",
"typescript": "^5.1.6",
"vsce": "^2.15.0"
},
"contributes": {
"languages": [
{
"id": "sql",
"aliases": [
"SQL",
"sql"
],
"extensions": [
".sql",
".q"
]
}
],
"commands": [
{
"title": "Format Selection (SQL Formatter VSCode)",
"shortTitle": "Format SQL",
"command": "sql-formatter-vscode.format-selection"
}
],
"configuration": {
"title": "SQL Formatter VSCode",
"properties": {
"SQL-Formatter-VSCode.dialect": {
"type": "string",
"enum": [
"auto-detect",
"bigquery",
"db2",
"db2i",
"hive",
"mariadb",
"mysql",
"n1ql",
"plsql",
"postgresql",
"redshift",
"singlestoredb",
"snowflake",
"spark",
"sqlite",
"tidb",
"trino",
"transactsql",
"sql"
],
"enumDescriptions": [
"Rely on VSCode to detect the relevant SQL dialect.",
"Google BigQuery",
"IBM DB2 for LUW (Linux, Unix, Windows)",
"IBM DB2 for iSystem",
"Apache Hive",
"MariaDB",
"MySQL",
"Couchbase N1QL",
"Oracle PL/SQL",
"PostgreSQL",
"Amazon Redshift",
"SingleStoreDB",
"Snowflake",
"Spark",
"SQLite",
"TiDB",
"Trino (should also work for Presto, which is very similar dialect, though technically different)",
"Microsoft SQL Server Transact-SQL",
"Basic SQL - generally not recommended."
],
"default": "auto-detect",
"markdownDescription": "The SQL dialect to use.\n\n**It is recommended to explicitly select the SQL dialect you're working with.**\n\nBy default the extension tries to use the SQL language info provided by VSCode. But this only works for some dialects when an extension for that language is installed. If the auto-detection fails, the formatter will default to using 'sql' dialect - which will work for the most basic SQL."
},
"SQL-Formatter-VSCode.ignoreTabSettings": {
"type": "boolean",
"default": false,
"markdownDescription": "Ignore user and workplace settings for `tabSize` and `insertSpaces` (uses `#SQL-Formatter-VSCode.tabSizeOverride#` and `#SQL-Formatter-VSCode.insertSpacesOverride#`)?"
},
"SQL-Formatter-VSCode.tabSizeOverride": {
"type": "number",
"default": 2,
"minimum": 1,
"markdownDescription": "Override for `tabSize` if `#SQL-Formatter-VSCode.ignoreTabSettings#` is active"
},
"SQL-Formatter-VSCode.insertSpacesOverride": {
"type": "boolean",
"default": true,
"markdownDescription": "Override for `insertSpaces` if `#SQL-Formatter-VSCode.ignoreTabSettings#` is active"
},
"SQL-Formatter-VSCode.keywordCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "Whether to print keywords in ALL CAPS, lowercase, or preserve existing"
},
"SQL-Formatter-VSCode.dataTypeCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "Whether to print data types in ALL CAPS, lowercase, or preserve existing"
},
"SQL-Formatter-VSCode.functionCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "Whether to print function names in ALL CAPS, lowercase, or preserve existing"
},
"SQL-Formatter-VSCode.identifierCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"markdownDescription": "Whether to print identifiers in ALL CAPS, lowercase, or preserve existing (experimental)"
},
"SQL-Formatter-VSCode.indentStyle": {
"type": "string",
"enum": [
"standard",
"tabularLeft",
"tabularRight"
],
"enumDescriptions": [
"Standard SQL format, with cascading indents",
"Maintain space column between keyword and args, aligning keywords to left",
"Maintain space column between keyword and args, aligning keywords to right"
],
"default": "standard",
"markdownDescription": "Where to place keywords"
},
"SQL-Formatter-VSCode.logicalOperatorNewline": {
"type": "string",
"enum": [
"before",
"after"
],
"default": "before",
"markdownDescription": "Whether to break before or after AND and OR"
},
"SQL-Formatter-VSCode.expressionWidth": {
"type": "integer",
"default": 50,
"minimum": 0,
"markdownDescription": "Maximum number of characters between pair of parenthesis before breaking the expression to multiple lines"
},
"SQL-Formatter-VSCode.linesBetweenQueries": {
"type": "integer",
"default": 1,
"minimum": 0,
"markdownDescription": "How many newlines to place between each query / statement"
},
"SQL-Formatter-VSCode.denseOperators": {
"type": "boolean",
"default": false,
"markdownDescription": "Strip whitespace around operators such as + or >="
},
"SQL-Formatter-VSCode.newlineBeforeSemicolon": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to place semicolon on its own line or on previous line"
},
"SQL-Formatter-VSCode.paramTypes": {
"type": "object",
"markdownDescription": "Specifies parameter placeholders types to support."
}
}
}
}
}