/
package.json
106 lines (106 loc) · 2.55 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
{
"publisher": "lvjiaxuan",
"name": "vscode-eslint-disable",
"displayName": "ESLint Disable",
"type": "module",
"version": "1.3.2",
"description": "Use hotkeys to insert the corresponding ESLint disabling rules comment.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lvjiaxuan/vscode-eslint-disable"
},
"categories": [
"Other",
"Snippets"
],
"main": "./dist/extension.cjs",
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.60.0"
},
"activationEvents": [
"workspaceContains:**/*.ts",
"workspaceContains:**/*.js",
"onLanguage:javascript",
"onLanguage:typescript"
],
"contributes": {
"commands": [
{
"command": "eslint-disable.disable",
"title": "eslint-disable: disable for line(s)"
},
{
"command": "eslint-disable.entire",
"title": "eslint-disable: disable for entire file"
},
{
"command": "eslint-disable.all",
"title": "eslint-disable: disable all rules for entire file"
}
],
"menus": {
"editor/context": [
{
"command": "eslint-disable.disable",
"group": "1_modification"
},
{
"command": "eslint-disable.entire",
"group": "1_modification"
},
{
"command": "eslint-disable.all",
"group": "1_modification"
}
]
},
"keybindings": [
{
"command": "eslint-disable.disable",
"key": "ctrl+alt+d",
"mac": "ctrl+alt+d",
"when": "editorTextFocus"
},
{
"command": "eslint-disable.entire",
"key": "ctrl+alt+e",
"mac": "ctrl+alt+e",
"when": "editorTextFocus"
},
{
"command": "eslint-disable.all",
"key": "ctrl+alt+a",
"mac": "ctrl+alt+a",
"when": "editorTextFocus"
}
]
},
"scripts": {
"compile": "tsup src/extension.ts --external=vscode --clean",
"dev": "npm run compile --watch --sourcemap",
"vscode:prepublish": "npm run compile",
"pretest": "npm run compile && npm run lint",
"lint": "eslint .",
"pack": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@lvjiaxuan/eslint-config": "^1.10.1",
"@types/node": "^20.12.11",
"@types/vscode": "1.89.0",
"eslint": "^9.2.0",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
"simple-git-hooks": {
"pre-commit": [
"npx lint-staged"
]
},
"lint-staged": {
"*": "eslint --fix"
}
}