-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
204 lines (204 loc) · 5.72 KB
/
Copy pathpackage.json
File metadata and controls
204 lines (204 loc) · 5.72 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
200
201
202
203
204
{
"name": "bemhelper",
"displayName": "BEM Helper",
"description": "Improve writing html using BEM naming conventions.",
"version": "2.0.0",
"author": "Box-Of-Hats",
"publisher": "Box-Of-Hats",
"engines": {
"vscode": "^1.32.0"
},
"categories": [
"Other"
],
"icon": "images/bem.png",
"activationEvents": [
"onLanguage:html",
"onLanguage:aspnetcorerazor",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:php",
"onLanguage:razor",
"onLanguage:twig",
"onLanguage:svelte",
"workspaceContains:*.jsx",
"workspaceContains:*.html"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": [
{
"title": "BEM linting options",
"properties": {
"bemHelper.showDepthWarnings": {
"type": "boolean",
"default": true,
"description": "Highlight classes that contain more than a block and element. e.g block__block2__element",
"scope": "window"
},
"bemHelper.ignoreClassNames": {
"type": "array",
"default": [
"material-icons"
],
"description": "A list of class names that should be ignored as parents (blocks) when inserting new elements or when generating a stylesheet.",
"scope": "resource"
},
"bemHelper.blockSelectionMode": {
"type": "string",
"default": "prefer-explicit",
"enum": [
"prefer-explicit",
"first-parent",
"explicit-only"
],
"enumDescriptions": [
"Use the first explicit parent if found. Fall back to an implicit parent if not found.",
"Use the first parent, explicit or implicit.",
"Use only explicit parent blocks."
],
"description": "The mode to use to select a parent block when inserting new elements.",
"scope": "resource"
},
"bemHelper.classNameCase": {
"type": "string",
"pattern": "^((any|kebab|snake|camel|pascal|shoutingSnake){1},?)+$",
"examples": [
"any",
"kebab",
"snake",
"camel",
"pascal",
"shoutingSnake"
],
"default": "kebab",
"description": "The allowed case styling of class names. Multiple allowed cases can be used with comma-separated values. E.g: 'kebab,pascal' ",
"scope": "window"
},
"bemHelper.responsiveLinting": {
"type": "boolean",
"default": true,
"description": "Enable/disable linting checks whenever a file contents changes. Disable for increased performace. Reload window to take effect",
"scope": "window"
},
"bemHelper.newLineAfterInsert": {
"type": "boolean",
"default": true,
"description": "Should a newline be inserted after inserting an element?",
"scope": "resource"
},
"bemHelper.sortGeneratedStylesheets": {
"type": "boolean",
"default": true,
"description": "Controls whether generated stylesheets should be sorted alphabetically",
"scope": "resource"
},
"bemHelper.elementSeparator": {
"type": "string",
"default": "__",
"description": "The string to use as a separator for elements. By default is set to '__'. Reload window to take effect",
"scope": "window"
},
"bemHelper.modifierSeparator": {
"type": "string",
"default": "--",
"description": "The string to use as a separator for modifiers. By default is set to '--'. Reload window to take effect",
"scope": "window"
},
"bemHelper.maxWarningsCount": {
"type": "integer",
"default": 100,
"description": "The maximum number of diagnostic warnings to show",
"scope": "window"
},
"bemHelper.languages": {
"type": "array",
"default": [
"html",
"aspnetcorerazor",
"javascriptreact",
"typescriptreact",
"javascript",
"typescript",
"php",
"razor",
"twig",
"svelte"
],
"description": "Languages that shoule be checked for BEM issues",
"scope": "window"
}
}
}
],
"commands": [
{
"command": "extension.bemHelper.insertElement",
"title": "BEM Helper: Insert Element"
},
{
"command": "extension.bemHelper.insertModifiedElement",
"title": "BEM Helper: Insert Modifier"
},
{
"command": "extension.bemHelper.generateStyleSheet",
"title": "BEM Helper: Generate Stylesheet"
},
{
"command": "extension.bemHelper.generateStyleSheetFromSelection",
"title": "BEM Helper: Generate Stylesheet From Selection"
},
{
"command": "extension.bemHelper.convertSelectionToCase",
"title": "BEM Helper: Convert Selection to Case"
}
],
"keybindings": [
{
"command": "extension.bemHelper.insertElement",
"key": "alt+b e",
"when": "editorTextFocus"
},
{
"command": "extension.bemHelper.insertModifiedElement",
"key": "alt+b m",
"when": "editorTextFocus"
},
{
"command": "extension.bemHelper.generateStyleSheet",
"key": "alt+b s",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile-prod",
"compile-dev": "webpack --mode development",
"compile-prod": "webpack --mode production",
"watch": "webpack --mode development --watch",
"pretest": "tsc",
"test": "vscode-test"
},
"repository": {
"type": "git",
"url": "https://github.com/Box-Of-Hats/Bem-VSCode-Extension"
},
"bugs": {
"url": "https://github.com/Box-Of-Hats/Bem-VSCode-Extension/issues"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"@types/node": "^14.11.5",
"@types/vscode": "^1.32.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2",
"glob": "^7.1.6",
"mocha": "^11.4.0",
"ts-loader": "^8.0.4",
"typescript": "^4.0.3",
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1"
}
}