-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
147 lines (147 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
{
"name": "vscode-swiftlint",
"displayName": "SwiftLint",
"description": "VS Code extension to enforce Swift style and conventions via SwiftLint",
"repository": {
"type": "git",
"url": "https://github.com/vknabel/vscode-swiftlint"
},
"version": "1.8.4",
"license": "MIT",
"author": {
"name": "Valentin Knabel",
"email": "[email protected]",
"url": "https://github.com/vknabel"
},
"publisher": "vknabel",
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#FC823F",
"theme": "light"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Linters",
"Programming Languages",
"Other"
],
"keywords": [
"swift",
"swiftlint",
"linter",
"lint"
],
"activationEvents": [
"onLanguage:swift",
"workspaceContains:**/*swift"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "SwiftLint configuration",
"type": "object",
"properties": {
"swiftlint.enable": {
"type": "boolean",
"default": true,
"description": "Whether SwiftLint should actually start up on this project."
},
"swiftlint.onlyEnableOnSwiftPMProjects": {
"type": "boolean",
"default": false,
"description": "Only allows the extension to load up when SwiftLint is available via SwiftPM."
},
"swiftlint.onlyEnableWithConfig": {
"type": "boolean",
"default": false,
"description": "Only use SwiftLint when a config exists. Requires `swiftlint.configSearchPaths`."
},
"swiftlint.path": {
"description": "The location of your globally installed SwiftLint.",
"scope": "machine",
"default": "swiftlint",
"oneOf": [
{
"type": "string",
"default": "swiftlint"
},
{
"type": "array",
"minItems": 1,
"default": [
"swiftlint"
],
"items": {
"type": "string"
}
}
]
},
"swiftlint.additionalParameters": {
"type": "array",
"default": [],
"description": "Additional parameters to pass to SwiftLint.",
"items": {
"type": "string"
}
},
"swiftlint.toolchainPath": {
"type": "string",
"description": "The path of the swift toolchain. May not be the CommandLineTools."
},
"swiftlint.configSearchPaths": {
"type": "array",
"default": [],
"description": "Possible paths for SwiftLint config.\nATTENTION: this disables nested configurations!\nhttps://github.com/realm/SwiftLint#nested-configurations",
"items": {
"type": "string"
}
},
"swiftlint.autoLintWorkspace": {
"type": "boolean",
"description": "Automatically lint the whole project right after start.",
"default": true
}
}
},
"commands": [
{
"title": "SwiftLint: Lint workspace",
"command": "swiftlint.lintWorkspace"
},
{
"title": "SwiftLint: Fix all autocorrect issues in workspace",
"command": "swiftlint.fixWorkspace",
"shortTitle": "SwiftLint: Fix workspace"
},
{
"title": "SwiftLint: Fix all autocorrect issues in document",
"command": "swiftlint.fixDocument",
"shortTitle": "SwiftLint: Fix document"
},
{
"title": "SwiftLint: Fix all known autocorrect issues",
"command": "source.fixAll.swiftlint",
"shortTitle": "SwiftLint: Fix all known issues"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.75.0",
"typescript": "^5.2.2"
},
"dependencies": {
"glob": "^10.0.0",
"yaml": "^2.3.2"
}
}