-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy pathpackage.json
More file actions
155 lines (155 loc) · 4.51 KB
/
Copy pathpackage.json
File metadata and controls
155 lines (155 loc) · 4.51 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
{
"name": "es-js-snippets",
"displayName": "ES JS Snippets",
"version": "5.0.0",
"description": "Customizable code snippets for React 17–19, React Native, Redux Toolkit, React Router v6, and modern JavaScript/TypeScript. Components, hooks, imports, prop-types, tests — searchable via Cmd+Shift+R.",
"categories": [
"Snippets"
],
"keywords": [
"customizable",
"es2022",
"es7",
"es7 snippets",
"hooks",
"javascript",
"javascript snippets",
"jsx",
"productivity",
"react",
"react native snippets",
"react snippets",
"react-hooks",
"react-native",
"react-router",
"redux",
"redux snippets",
"redux-toolkit",
"rtk-query",
"snippets",
"tsx",
"typescript",
"typescript snippets"
],
"homepage": "https://github.com/r5n-labs/vscode-react-javascript-snippets#readme",
"bugs": {
"url": "https://github.com/r5n-labs/vscode-react-javascript-snippets/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/r5n-labs/vscode-react-javascript-snippets"
},
"publisher": "r5n",
"main": "./lib/index.js",
"scripts": {
"vscode:prepublish": "bun run generate:check && bun run compile",
"audit": "bun audit --audit-level=high",
"compile": "bun run scripts/build.ts",
"compile:dev": "bun run scripts/build.ts",
"generate": "bun run scripts/generateSnippets.ts",
"generate:check": "bun run scripts/generateSnippets.ts --check",
"lint": "oxlint . && oxfmt --check .",
"lint:fix": "oxlint --fix . && oxfmt .",
"test": "bun test",
"watch": "bun run scripts/build.ts --watch",
"typescript": "tsc --noEmit",
"package": "vsce package --no-dependencies",
"publish:vsce": "vsce publish --no-dependencies",
"publish:ovsx": "ovsx publish --no-dependencies"
},
"devDependencies": {
"@types/node": "25.6.0",
"@types/vscode": "^1.118.0",
"@vscode/vsce": "3.9.2",
"ovsx": "1.0.2",
"oxfmt": "^0.47.0",
"oxlint": "^1.62.0",
"typescript": "6.0.3"
},
"overrides": {
"brace-expansion": "5.0.7",
"fast-uri": "3.1.4",
"form-data": "4.0.6",
"js-yaml": "4.3.0",
"linkify-it": "5.0.2",
"tmp": "0.2.7",
"undici": "7.28.0"
},
"contributes": {
"commands": [
{
"command": "reactSnippets.search",
"title": "Snippet search"
}
],
"keybindings": [
{
"command": "reactSnippets.search",
"key": "ctrl+alt+r",
"mac": "shift+cmd+r",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "ES React/React-Native/Redux snippets",
"properties": {
"reactSnippets.settings.importReactOnTop": {
"type": "boolean",
"markdownDescription": "Controls if snippets should add `import React from 'react';` at the top of components.\nEnable for legacy projects (pre-React 17).",
"default": false,
"scope": "application"
},
"reactSnippets.settings.typescript": {
"type": "boolean",
"markdownDescription": "Controls whether TypeScript-specific snippets (`ts*`, `exptp`, and `expint`) are included.",
"default": true,
"scope": "application"
},
"reactSnippets.settings.languageScopes": {
"type": "string",
"markdownDescription": "defines the language scopes for which the snippets will be available.\nUse comma separated values.\nFor example: `typescript,typescriptreact,javascript,javascriptreact`",
"default": "typescript,typescriptreact,javascript,javascriptreact",
"scope": "application"
},
"reactSnippets.settings.typescriptPropsStatePrefix": {
"type": "string",
"markdownDescription": "Controls which prefix for typescript snippets should use for props/state.",
"default": "type",
"enum": [
"type",
"interface"
],
"scope": "application"
}
}
},
"snippets": [
{
"path": "./lib/snippets/generated.code-snippets"
}
]
},
"activationEvents": [
"onCommand:reactSnippets.search",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onStartupFinished"
],
"extensionKind": [
"ui",
"workspace"
],
"icon": "images/logo.png",
"engines": {
"vscode": "^1.118.0"
},
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
}
}