forked from microsoft/vscode-editorconfig
-
Notifications
You must be signed in to change notification settings - Fork 117
/
package.json
185 lines (185 loc) · 4.45 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
176
177
178
179
180
181
182
183
184
185
{
"name": "EditorConfig",
"displayName": "EditorConfig for VS Code",
"description": "EditorConfig Support for Visual Studio Code",
"publisher": "EditorConfig",
"version": "0.16.6",
"icon": "EditorConfig_icon.png",
"engines": {
"vscode": "^1.51.1"
},
"author": "EditorConfig Team",
"license": "MIT",
"categories": [
"Other"
],
"keywords": [
"editor",
"config",
"multi-root ready"
],
"homepage": "https://github.com/editorconfig/editorconfig-vscode/blob/main/README.md",
"repository": {
"type": "git",
"url": "https://github.com/editorconfig/editorconfig-vscode.git"
},
"bugs": {
"url": "https://github.com/editorconfig/editorconfig-vscode/issues"
},
"galleryBanner": {
"color": "#37699A",
"theme": "dark"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/editorConfigMain.js",
"types": "./out/editorConfigMain.d.ts",
"contributes": {
"commands": [
{
"command": "EditorConfig.generate",
"title": "Generate .editorconfig"
}
],
"configuration": {
"title": "EditorConfig",
"properties": {
"editorconfig.generateAuto": {
"type": "boolean",
"default": true,
"description": "Automatically generates an .editorconfig file according to your current editor settings."
},
"editorconfig.template": {
"type": "string",
"default": "default",
"description": "If generateAuto is false, this template path will be used for each newly-generated .editorconfig file."
}
}
},
"menus": {
"commandPalette": [
{
"command": "EditorConfig.generate",
"when": "explorerResourceIsFolder"
}
],
"explorer/context": [
{
"command": "EditorConfig.generate",
"when": "explorerResourceIsFolder",
"group": "EditorConfig@1"
}
]
},
"languages": [
{
"id": "editorconfig",
"extensions": [
".editorconfig"
],
"aliases": [
"EditorConfig",
"editorconfig"
],
"filenames": [],
"configuration": "./editorconfig.language-configuration.json"
}
],
"grammars": [
{
"language": "editorconfig",
"scopeName": "source.editorconfig",
"path": "./syntaxes/editorconfig.tmLanguage.json"
}
]
},
"capabilities": {
"virtualWorkspaces": {
"supported": false,
"description": "The `editorconfig` dependency requires fs access for parsing the config to use."
}
},
"dependencies": {
"editorconfig": "^0.15"
},
"devDependencies": {
"@types/glob": "^7",
"@types/mocha": "^8",
"@types/node": "^14",
"@types/vscode": "^1",
"@typescript-eslint/eslint-plugin": "^4",
"@typescript-eslint/parser": "^4",
"eslint": "^7",
"eslint-config-prettier": "^6",
"eslint-config-xo": "^0.33",
"eslint-plugin-prettier": "^3",
"glob": "^7",
"husky": "^4",
"lint-staged": "^10",
"mocha": "^8",
"prettier": "^2",
"rimraf": "^3",
"semver": "^7.3.5",
"typescript": "^4",
"vsce": "^2.7.0",
"vscode-test": "^1",
"vscode-test-utils": "^1"
},
"scripts": {
"clean": "rimraf out",
"prebuild": "npm run clean",
"build": "tsc",
"postbuild": "cp -r src/test/suite/fixtures out/test/suite && cp -r src/test/untitled-suite/fixtures out/test/untitled-suite && cp src/DefaultTemplate.editorconfig out",
"lint": "eslint src/**/*.ts",
"pretest": "npm run lint && npm run build",
"prewatch": "npm run build",
"watch": "tsc -watch",
"check-types": "tsc --noEmit",
"test": "node out/test/runTest.js",
"vscode:prepublish": "npm run build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run lint && npm run check-types"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write",
"git add"
],
"*.{json,md}": [
"prettier --write",
"git add"
],
"*.js": [
"git reset"
]
},
"eslintConfig": {
"extends": [
"xo",
"prettier"
],
"env": {
"jest": true,
"node": true
},
"rules": {
"prettier/prettier": "error"
},
"plugins": [
"prettier"
]
},
"prettier": {
"arrowParens": "avoid",
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
}