-
Notifications
You must be signed in to change notification settings - Fork 442
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 4.37 KB
/
package.json
File metadata and controls
154 lines (154 loc) · 4.37 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
{
"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/vscode-react-javascript-snippets#readme",
"bugs": {
"url": "https://github.com/r5n/vscode-react-javascript-snippets/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/r5n/vscode-react-javascript-snippets"
},
"publisher": "r5n",
"main": "./lib/index.js",
"browser": "./lib/index.js",
"scripts": {
"vscode:prepublish": "bun run compile",
"compile": "rm -rf lib; tsc -p ./ --noEmit false --module commonjs --outDir lib",
"compile:dev": "rm -rf lib; tsc -p ./ --noEmit false --module commonjs --outDir lib",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"format": "oxfmt",
"format:check": "oxfmt --check",
"watch": "tsc -watch -p ./",
"typescript": "tsc --noEmit",
"package": "vsce package --no-dependencies",
"publish:vsce": "vsce publish --no-dependencies",
"publish:ovsx": "ovsx publish --no-dependencies"
},
"devDependencies": {
"@types/node": "20.11.0",
"@types/vscode": "^1.60.0",
"@vscode/vsce": "3.2.1",
"ovsx": "0.10.1",
"oxfmt": "^0.47.0",
"oxlint": "^1.62.0",
"typescript": "5.7.2"
},
"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
},
"reactSnippets.settings.typescript": {
"type": "boolean",
"markdownDescription": "Controls if React components have typescript Props typing.",
"default": true
},
"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"
},
"reactSnippets.settings.typescriptPropsStatePrefix": {
"type": "string",
"markdownDescription": "Controls which prefix for typescript snippets should use for props/state.",
"default": "type",
"enum": [
"type",
"interface"
]
}
}
},
"snippets": [
{
"language": "javascript",
"path": "./lib/snippets/generated.json"
},
{
"language": "javascriptreact",
"path": "./lib/snippets/generated.json"
},
{
"language": "typescript",
"path": "./lib/snippets/generated.json"
},
{
"language": "typescriptreact",
"path": "./lib/snippets/generated.json"
}
]
},
"activationEvents": [
"onCommand:reactSnippets.search",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onStartupFinished"
],
"extensionKind": [
"ui",
"workspace"
],
"icon": "images/logo.png",
"engines": {
"vscode": "^1.60.0"
},
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
}
}