-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
175 lines (175 loc) · 6.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
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
{
"publisher": "pantajoe",
"name": "vscode-elixir-credo",
"displayName": "Credo (Elixir Linter)",
"version": "1.0.0",
"packageManager": "[email protected]",
"description": "VSC Support for Elixir linter 'Credo'.",
"author": {
"name": "pantajoe",
"url": "https://www.github.com/pantajoe"
},
"repository": {
"type": "git",
"url": "https://github.com/pantajoe/vscode-elixir-credo.git"
},
"keywords": [
"elixir",
"credo",
"linter"
],
"categories": [
"Programming Languages",
"Linters"
],
"main": "./out/main.js",
"icon": "images/elixir.png",
"engines": {
"vscode": "^1.90.2"
},
"activationEvents": [
"onLanguage:elixir"
],
"contributes": {
"languages": [
{
"id": "elixir",
"extensions": [
".ex",
".exs"
]
}
],
"configuration": [
{
"title": "Credo (Elixir Linter)",
"properties": {
"elixir.credo.configurationFile": {
"title": "Configuration File",
"markdownDescription": "Configures which configuration file Credo should use. Default is `.credo.exs`. The extension will first look into the project root, then into the `config/` folder",
"type": "string",
"default": ".credo.exs",
"scope": "resource"
},
"elixir.credo.credoConfiguration": {
"title": "Credo Configuration Name",
"description": "Configures the name of the used configuration (Credo supports having multiple configurations).",
"type": "string",
"default": "default",
"scope": "resource"
},
"elixir.credo.executePath": {
"title": "Execute Path",
"markdownDescription": "Specifies the execute path where mix can be run from, e.g., `/usr/bin/.asdf/shims`",
"type": "string",
"default": ""
},
"elixir.credo.strictMode": {
"title": "Strict Mode",
"description": "Specifies whether to activate Credo's strict mode",
"type": "boolean",
"default": false,
"scope": "resource"
},
"elixir.credo.checksWithTag": {
"title": "Checks With Tag",
"markdownDescription": "Only include checks that match the given tag. This setting takes precedence over `#elixir.credo.checksWithoutTag#`.\n\n(see [Credo Docs](https://hexdocs.pm/credo/check_params.html#tags))",
"type": "array",
"default": [],
"uniqueItems": true,
"items": {
"type": "string"
},
"scope": "resource"
},
"elixir.credo.checksWithoutTag": {
"title": "Checks Without Tag",
"markdownDescription": "Ignore checks that match the given tag. This setting is overridden by `#elixir.credo.checksWithTag#`.\n\n(see [Credo Docs](https://hexdocs.pm/credo/check_params.html#tags))",
"type": "array",
"default": [],
"uniqueItems": true,
"items": {
"type": "string"
},
"scope": "resource"
},
"elixir.credo.ignoreWarningMessages": {
"title": "Ignore Warning Messages",
"markdownDescription": "Ignore messages like `Found multiple files ...`, `.. file does not exist. Ignoring ...`",
"type": "boolean",
"default": false
},
"elixir.credo.lintEverything": {
"title": "Lint Everything",
"markdownDescription": "Lint every Elixir file, regardless of your `.credo.exs` config",
"type": "boolean",
"default": false,
"scope": "resource"
},
"elixir.credo.enableDebug": {
"title": "Enable Debug Mode",
"description": "Enable extensive logging to the output channel",
"type": "boolean",
"default": false
},
"elixir.credo.diffMode.enabled": {
"title": "Enable Credo Diff Mode",
"markdownDescription": "Enable Credo's [diff mode](https://hexdocs.pm/credo/diff_command.html) against a [merge base](https://hexdocs.pm/credo/diff_command.html#from-git-merge-base).\n\nYou can specify the merge base in the setting `#elixir.credo.diffMode.mergeBase#`",
"type": "boolean",
"default": false,
"scope": "resource"
},
"elixir.credo.diffMode.mergeBase": {
"title": "Merge Base for Credo Diff Mode",
"markdownDescription": "Change the [merge base](https://hexdocs.pm/credo/diff_command.html#from-git-merge-base) for Credo's diff mode (e.g., `main`).",
"type": "string",
"if": "config.elixir.credo.diffMode.enabled",
"default": "main",
"scope": "resource"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"compile": "tsc -p ./",
"prepare": "husky",
"lint": "biome check --error-on-warnings .",
"lint:fix": "biome check --apply --error-on-warnings .",
"typecheck": "tsc -p ./ --noEmit",
"watch": "tsc -watch -p ./",
"pretest": "pnpm run compile && pnpm run lint",
"test": "node ./out/test/run.js"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@total-typescript/shoehorn": "^0.1.2",
"@types/chai": "^4.3.16",
"@types/chai-as-promised": "^7.1.8",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.8",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@types/vscode": "^1.90.0",
"@vscode/test-electron": "^2.4.0",
"chai": "<5.0.0",
"chai-as-promised": "^7.1.2",
"chai-change": "^2.1.2",
"glob": "^10.4.2",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"mocha": "^10.4.0",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"typescript": "^5.5.2"
},
"lint-staged": {
"*": [
"biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"
]
}
}