-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
100 lines (100 loc) · 2.54 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
{
"name": "credo-linter",
"displayName": "Credo Linter",
"description": "An extension to display credo remarks in vscode.",
"author": "Adam Zapaśnik",
"version": "0.3.0",
"license": "MIT",
"publisher": "adamzapasnik",
"homepage": "https://github.com/adamzapasnik/vscode-credo-linter",
"repository": "https://github.com/adamzapasnik/vscode-credo-linter",
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Linters"
],
"keywords": [
"elixir",
"credo",
"linter"
],
"activationEvents": [
"workspaceContains:**/mix.exs",
"workspaceContains:**/.credo.exs"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Credo configuration",
"properties": {
"credo.enable": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Control whether or not credo is enabled for Elixir files."
},
"credo.command": {
"type": "string",
"scope": "resource",
"default": "mix credo --strict",
"description": "Credo command (don't use format option)",
"minLength": 1
},
"credo.projectDir": {
"scope": "resource",
"type": "string",
"description": "Project dir",
"default": ""
},
"credo.mixEnv": {
"scope": "resource",
"type": "string",
"description": "Mix environment to use for compilation",
"default": "test",
"minLength": 1
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,css,json,md}": [
"prettier --write"
],
"*.{js,ts}": [
"eslint --fix"
]
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.9",
"@types/vscode": "^1.61.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"glob": "^7.1.6",
"husky": "^7.0.2",
"lint-staged": "^11.2.3",
"mocha": "^9.1.2",
"prettier": "^2.2.1",
"typescript": "^4.4.4",
"vscode-test": "^1.6.1"
}
}