-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 3.46 KB
/
package.json
File metadata and controls
136 lines (136 loc) · 3.46 KB
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
{
"name": "global-sql-formatter",
"displayName": "SQL Formatter Pro",
"description": "Format SQL files using SQLFluff",
"version": "0.0.1",
"publisher": "Sajith",
"repository": {
"type": "git",
"url": "https://github.com/yourusername/sql-formatter-extension"
},
"icon": "images/icon.ico",
"engines": {
"vscode": "^1.98.0"
},
"categories": [
"Formatters"
],
"activationEvents": [
"onLanguage:sql"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "sql-formatter.format",
"title": "Format SQL with SQLFluff"
}
],
"languages": [
{
"id": "sql",
"extensions": [
".sql"
]
}
],
"configuration": {
"title": "SQL Formatter",
"properties": {
"sql-formatter.dialect": {
"type": "string",
"default": "ansi",
"enum": [
"ansi",
"athena",
"bigquery",
"clickhouse",
"databricks",
"db2",
"duckdb",
"exasol",
"greenplum",
"hive",
"impala",
"mariadb",
"materialize",
"mysql",
"oracle",
"postgres",
"redshift",
"snowflake",
"soql",
"sparksql",
"sqlite",
"starrocks",
"teradata",
"trino",
"tsql",
"vertica"
],
"enumDescriptions": [
"ANSI SQL",
"AWS Athena",
"Google BigQuery",
"ClickHouse",
"Databricks (inherits from Spark SQL)",
"IBM DB2",
"DuckDB (inherits from PostgreSQL)",
"Exasol",
"Greenplum (inherits from PostgreSQL)",
"Apache Hive",
"Apache Impala (inherits from Hive)",
"MariaDB (inherits from MySQL)",
"Materialize (inherits from PostgreSQL)",
"MySQL",
"Oracle",
"PostgreSQL",
"Amazon Redshift (inherits from PostgreSQL)",
"Snowflake",
"Salesforce Object Query Language (SOQL)",
"Spark SQL",
"SQLite",
"StarRocks (inherits from MySQL)",
"Teradata",
"Trino",
"T-SQL (SQL Server)",
"Vertica"
],
"description": "SQL dialect to use for formatting"
},
"sql-formatter.rules": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specific SQLFluff rules to apply during formatting"
},
"sql-formatter.verboseLogging": {
"type": "boolean",
"default": false,
"description": "Enable verbose logging for debugging purposes"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.98.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"eslint": "^9.23.0",
"typescript": "^5.8.2",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}