-
Notifications
You must be signed in to change notification settings - Fork 68
/
package.json
116 lines (116 loc) · 3.08 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
{
"name": "ruby-rubocop",
"version": "0.8.6",
"publisher": "misogi",
"displayName": "ruby-rubocop",
"description": "execute rubocop for current Ruby code.",
"engines": {
"vscode": "^1.62.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": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"format": "prettier src test --write",
"lint": "eslint src test --ext ts",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"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.22",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/proxyquire": "^1.3.28",
"@types/vscode": "^1.62.0",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vscode/test-electron": "^1.6.2",
"chai": "^4.3.4",
"eslint": "^8.1.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"prettier": "^2.5.1",
"proxyquire": "^2.1.0",
"typescript": "^4.5.2",
"vscode-test": "^1.6.1"
}
}