forked from misogi/vscode-ruby-rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 2.79 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
{
"name": "ruby-rubocop",
"version": "0.8.5",
"publisher": "misogi",
"displayName": "ruby-rubocop",
"description": "execute rubocop for current Ruby code.",
"engines": {
"vscode": "^1.32.0"
},
"icon": "images/rubocop.png",
"repository": {
"type": "git",
"url": "https://github.com/misogi/vscode-ruby-rubocop.git"
},
"categories": [
"Programming Languages",
"Linters"
],
"activationEvents": [
"onLanguage:ruby",
"onCommand:ruby.rubocop"
],
"main": "./out/src/extension",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"format": "tsfmt -r src/*",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"contributes": {
"languages": [
{
"id": "ruby",
"extensions": [
".rb"
]
},
{
"id": "gemfile",
"filenamePatterns": [
"Gemfile"
]
}
],
"commands": [
{
"command": "ruby.rubocop",
"title": "Ruby: lint by rubocop"
},
{
"command": "editor.action.formatDocument",
"title": "Ruby: autocorrect by rubocop"
}
],
"keybindings": [
{
"key": "shift+ctrl+r",
"command": "editor.action.formatDocument",
"when": "editorLangId == 'ruby' || editorLangId == 'gemfile'"
}
],
"configuration": {
"type": "object",
"title": "Ruby-Rubocop configuration",
"properties": {
"ruby.rubocop.executePath": {
"type": "string",
"default": "",
"description": "execution path of rubocop."
},
"ruby.rubocop.configFilePath": {
"type": "string",
"default": "",
"description": "Filepath to the configuration file for Rubocop"
},
"ruby.rubocop.onSave": {
"type": "boolean",
"default": true,
"description": "execute rubocop on save."
},
"ruby.rubocop.useBundler": {
"type": "boolean",
"default": false,
"description": "execute rubocop using bundler (ie 'bundle exec rubocop')"
},
"ruby.rubocop.suppressRubocopWarnings": {
"type": "boolean",
"default": false,
"description": "Suppress warnings from rubocop and attempt to run regardless. (Useful if you share a rubocop.yml file and run into unrecognized cop errors you know are okay.)"
}
}
}
},
"devDependencies": {
"@types/chai": "^4.2.9",
"@types/mocha": "^5.2.6",
"@types/node": "^13.7.7",
"chai": "^4.2.0",
"mocha": "^6.0.2",
"prettier": "^2.1.2",
"proxyquire": "^2.1.0",
"sinon": "^7.3.0",
"tslint": "^5.1.0",
"typescript": "^3.8.3",
"vscode": "^1.1.0"
}
}