-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
149 lines (149 loc) · 4.69 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
{
"name": "vscode-standard-ruby",
"displayName": "Standard Ruby",
"description": "The official VS Code extension for the Standard Ruby linter and code formatter.",
"icon": "standard-ruby.png",
"version": "0.0.16",
"publisher": "testdouble",
"repository": {
"type": "git",
"url": "https://github.com/testdouble/vscode-standard-ruby.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/testdouble/vscode-standard-ruby/issues"
},
"packageManager": "[email protected]",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Formatters",
"Linters"
],
"keywords": [
"ruby",
"standard",
"standardrb",
"style-guide",
"linter",
"formatter",
"autofix",
"rubocop",
"language-server"
],
"activationEvents": [
"onLanguage:ruby",
"workspaceContains:Gemfile.lock"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "standardRuby.start",
"title": "Standard Ruby: Start Language Server"
},
{
"command": "standardRuby.stop",
"title": "Standard Ruby: Stop Language Server"
},
{
"command": "standardRuby.restart",
"title": "Standard Ruby: Restart Language Server"
},
{
"command": "standardRuby.formatAutoFixes",
"title": "Standard Ruby: Format with Automatic Fixes"
},
{
"command": "standardRuby.showOutputChannel",
"title": "Standard Ruby: Show Output Channel"
}
],
"configuration": [
{
"type": "object",
"title": "Standard Ruby",
"properties": {
"standardRuby.mode": {
"order": 1,
"type": "string",
"default": "enableViaGemfileOrMissingGemfile",
"enum": [
"enableUnconditionally",
"enableViaGemfileOrMissingGemfile",
"enableViaGemfile",
"onlyRunGlobally",
"disable"
],
"enumItemLabels": [
"Always run—whether via Bundler or globally",
"Run unless the bundle excludes standard",
"Run only via Bundler, never globally",
"Run only globally, never via Bundler",
"Disable the extension"
],
"markdownEnumDescriptions": [
"Enable Standard Ruby via the workspace's Gemfile or else fall back on a global installation",
"Enable Standard Ruby via the workspace's Gemfile or else fall back on a global installation **unless** a Gemfile is present and its bundle does not include `standard`",
"Enable Standard Ruby only if the workspace's Gemfile includes `standard` and _do not_ fall back on a global installation",
"Enable Standard Ruby and always run `standardrb` without Bundler",
"Disable the Standard Ruby extension entirely"
]
},
"standardRuby.autofix": {
"order": 2,
"type": "boolean",
"default": true,
"description": "Automatically format code and fix Standard Ruby errors"
},
"standardRuby.commandPath": {
"order": 3,
"type": "string",
"default": "",
"markdownDescription": "Absolute path to standardrb executable. Overrides default search order and, if missing, will not run Standard via Bundler or a `standardrb` executable on your PATH.\n\nSupports variables `${userHome}`, `${pathSeparator}`, and `${cwd}`"
}
}
}
]
},
"scripts": {
"clean": "rm -rf ./out",
"esbuild-base": "esbuild --bundle --external:vscode --format=cjs --outfile=out/extension.js --platform=node src/extension.ts",
"compile": "yarn run esbuild-base --sourcemap",
"watch": "yarn run esbuild-base --sourcemap --watch",
"lint": "ts-standard --fix",
"test": "node ./out/test/runTest.js",
"test-compile": "tsc -p ./",
"test-watch": "tsc --watch -p ./",
"vsce:package": "vsce package --no-yarn --githubBranch main",
"vsce:publish": "vsce publish --no-yarn --githubBranch main",
"vscode:prepublish": "yarn run esbuild-base --minify"
},
"dependencies": {
"semver": "^7.3.8",
"vscode-languageclient": "8.0.2"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@types/vscode": "^1.68.0",
"@vscode/test-electron": "^2.2.0",
"@vscode/vsce": "^2.18.0",
"esbuild": "^0.17.6",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"ts-standard": "^12.0.2",
"typescript": "^4.7.4"
},
"ts-standard": {
"project": "./tsconfig.json",
"ignore": [
"out"
],
"env": [
"node"
]
}
}