-
Notifications
You must be signed in to change notification settings - Fork 441
/
package.json
162 lines (162 loc) · 4.7 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
{
"name": "es7-react-js-snippets",
"displayName": "ES7+ React/Redux/React-Native snippets",
"description": "Extensions for React, React-Native and Redux in JS/TS with ES7+ syntax. Customizable. Built-in integration with prettier.",
"version": "4.4.3",
"publisher": "dsznajder",
"icon": "images/logo.png",
"browser": "./lib/index.js",
"main": "./lib/index.js",
"keywords": [
"snippets",
"react",
"redux",
"react-native",
"customizable",
"javascript",
"typescript",
"prettier"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dsznajder/vscode-es7-javascript-react-snippets"
},
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Snippets"
],
"extensionKind": [
"ui",
"workspace"
],
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptReact",
"onLanguage:javascript",
"onLanguage:javascriptReact",
"onCommand:reactSnippets.search",
"onStartupFinished"
],
"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.prettierEnabled": {
"type": "boolean",
"markdownDescription": "[EXPERIMENTAL: MIGHT NOT WORK]: Integrate prettier settings with code generated from snippets.",
"default": false
},
"reactSnippets.settings.importReactOnTop": {
"type": "boolean",
"markdownDescription": "Controls if snippets should add `import React from 'react';` at the top of components.\nUse if you have React +17 and use jsx transform.",
"default": true
},
"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"
}
]
},
"scripts": {
"vscode:prepublish": "yarn 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": "eslint --ext .js,.ts,.tsx ./src/",
"watch": "tsc -watch -p ./",
"typescript": "tsc --noEmit"
},
"dependencies": {
"prettier": "2.5.1"
},
"peerDependencies": {
"prettier": "^2"
},
"devDependencies": {
"@babel/cli": "7.17.0",
"@babel/eslint-parser": "7.17.0",
"@babel/preset-typescript": "7.16.7",
"@types/node": "17.0.16",
"@types/prettier": "2.4.3",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "5.11.0",
"@typescript-eslint/parser": "5.11.0",
"eslint": "8.8.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jest": "26.1.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"prettier": "2.5.1",
"typescript": "4.5.5"
},
"prettier": {
"bracketSameLine": false,
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"endOfLine": "auto"
}
}