-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
199 lines (199 loc) · 6.88 KB
/
Copy pathpackage.json
File metadata and controls
199 lines (199 loc) · 6.88 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "angular-code-quality-toolkit",
"displayName": "Angular Code Quality Toolkit",
"description": "VS Code extension to run Angular code-quality tools (depcheck, ts-prune, ESLint, stylelint), add ESLint to Angular projects, and help clean unused code, dependencies, and styles.",
"version": "0.2.0",
"publisher": "arul1998",
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/Arul1998/angular-code-quality-toolkit"
},
"license": "MIT",
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Linters",
"Other"
],
"keywords": [
"angular",
"code quality",
"eslint",
"stylelint",
"ts-prune",
"depcheck",
"cleanup",
"refactor"
],
"homepage": "https://github.com/Arul1998/angular-code-quality-toolkit#readme",
"bugs": {
"url": "https://github.com/Arul1998/angular-code-quality-toolkit/issues"
},
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "angularCodeQualityToolkit.runDepcheck",
"title": "Angular Code Quality: Run depcheck",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.runTsPrune",
"title": "Angular Code Quality: Run ts-prune",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.runEslint",
"title": "Angular Code Quality: Run ESLint",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.addEslintToAngular",
"title": "Angular Code Quality: Add ESLint to Angular project",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.runStylelint",
"title": "Angular Code Quality: Run stylelint",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.runAllChecks",
"title": "Angular Code Quality: Run all checks",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.clearDiagnostics",
"title": "Angular Code Quality: Clear results",
"category": "Angular Code Quality"
},
{
"command": "angularCodeQualityToolkit.selectProject",
"title": "Angular Code Quality: Select Angular project",
"category": "Angular Code Quality"
}
],
"menus": {
"commandPalette": [
{
"command": "angularCodeQualityToolkit.runDepcheck",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.runTsPrune",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.runEslint",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.addEslintToAngular",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.runStylelint",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.runAllChecks",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.clearDiagnostics",
"when": "workspaceFolderCount > 0",
"group": "navigation"
},
{
"command": "angularCodeQualityToolkit.selectProject",
"when": "workspaceFolderCount > 0",
"group": "navigation"
}
]
},
"configuration": {
"title": "Angular Code Quality Toolkit",
"properties": {
"angularCodeQuality.packageManager": {
"type": "string",
"enum": [
"auto",
"npm",
"yarn",
"pnpm",
"bun"
],
"default": "auto",
"description": "Package manager used to run tools and scripts. \"auto\" detects it from the lockfile in the workspace root (pnpm-lock.yaml, yarn.lock, bun.lockb, package-lock.json)."
},
"angularCodeQuality.tsPrune.tsconfigPath": {
"type": "string",
"default": "tsconfig.app.json",
"description": "Path (relative to the workspace root) to the tsconfig ts-prune should use. Falls back to running ts-prune without a project file if the file is missing."
},
"angularCodeQuality.stylelint.globs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"src/**/*.scss",
"src/**/*.css"
],
"description": "Glob patterns stylelint should lint when no \"lint:styles\" or \"stylelint\" npm script is defined."
},
"angularCodeQuality.eslint.useJsonFormat": {
"type": "boolean",
"default": true,
"description": "Request JSON output from the lint script (npm run lint -- --format json) for more reliable parsing. Disable if your lint script does not support --format."
},
"angularCodeQuality.stylelint.useJsonFormat": {
"type": "boolean",
"default": true,
"description": "Request JSON output from stylelint (--formatter json) for more reliable parsing. Disable if your setup does not support it."
},
"angularCodeQuality.depcheck.ignoreAngularImplicit": {
"type": "boolean",
"default": true,
"description": "Hide depcheck \"unused dependency\" results for packages Angular uses implicitly (@angular/*, zone.js, rxjs, tslib, typescript, karma/jasmine, and builders referenced in angular.json), which are otherwise false positives."
},
"angularCodeQuality.depcheck.ignores": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional package-name patterns to hide from depcheck \"unused dependency\" results. \"*\" is a wildcard (e.g. \"@my-scope/*\")."
},
"angularCodeQuality.revealOutputOnRun": {
"type": "boolean",
"default": false,
"description": "Reveal the Angular Code Quality output channel automatically each time a command runs. Findings appear in the Problems panel; enable this only if you want to watch the raw tool logs."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint \"src/**/*.ts\"",
"pretest": "npm run compile",
"test": "cd out && node --test"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.84.0",
"eslint": "^9.0.0",
"typescript-eslint": "^8.0.0",
"typescript": "^5.3.0"
}
}