-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
157 lines (157 loc) · 4.09 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
{
"name": "coc-sqlfluff",
"version": "0.11.4",
"sqlfluffVersion": "2.1.0",
"description": "SQLFluff (A SQL linter and auto-formatter for Humans) extension for coc.nvim",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"vim",
"neovim",
"sql",
"jinja-sql",
"linter",
"formatter"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-sqlfluff"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/rimraf": "^3.0.2",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.7",
"rimraf": "^3.0.2",
"typescript": "^5.0.4",
"which": "^2.0.2"
},
"activationEvents": [
"onLanguage:sql",
"onLanguage:jinja-sql"
],
"contributes": {
"configuration": {
"type": "object",
"title": "coc-sqlfluff configuration",
"properties": {
"sqlfluff.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-sqlfluff extension"
},
"sqlfluff.commandPath": {
"type": "string",
"default": "",
"description": "The path to the sqlfluff command (Absolute path)"
},
"sqlfluff.builtin.pythonPath": {
"type": "string",
"default": "",
"description": "Python 3.x path (Absolute path) to be used for built-in install"
},
"sqlfluff.dialect": {
"type": "string",
"enum": [
"ansi",
"athena",
"bigquery",
"clickhouse",
"databricks",
"db2",
"duckdb",
"exasol",
"hive",
"mysql",
"oracle",
"postgres",
"redshift",
"snowflake",
"soql",
"sparksql",
"sqlite",
"teradata",
"tsql"
],
"default": "ansi",
"description": "The dialect of SQL to lint"
},
"sqlfluff.linter.ignoreParsing": {
"type": "boolean",
"default": true,
"description": "Whether the sql linter should ignore parsing errors."
},
"sqlfluff.lintOnOpen": {
"type": "boolean",
"default": true,
"description": "Lint file on opening"
},
"sqlfluff.lintOnChange": {
"type": "boolean",
"default": true,
"description": "Lint file on change"
},
"sqlfluff.lintOnSave": {
"type": "boolean",
"default": true,
"description": "Lint file on save"
},
"sqlfluff.formatEnable": {
"type": "boolean",
"default": true,
"description": "Whether the document formatter is enabled or not."
},
"sqlfluff.formatIgnoreStderrAlert": {
"type": "boolean",
"default": true,
"description": "Ignore stderr message output when formatting is executed, e.g. `Unfixable violations detected`"
}
}
},
"commands": [
{
"command": "sqlfluff.install",
"title": "Install sqlfluff"
},
{
"command": "sqlfluff.fix",
"title": "Run sqlfluff fix file"
},
{
"command": "sqlfluff.format",
"title": "Run sqlfluff format file (Available in sqlfluff `v2.0.0` and later)"
},
{
"command": "sqlfluff.showOutput",
"title": "Show sqlfluff output channel"
}
]
},
"dependencies": {
"semver": "^7.3.8"
}
}