Skip to content

Commit efa3c28

Browse files
committed
chore: fix formatting and update link
1 parent 42e1edf commit efa3c28

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

.gitpod.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
tasks:
6+
- init: yarn install
7+
8+
github:
9+
prebuilds:
10+
master: true
11+
branches: true
12+
pullRequests: true
13+
pullRequestsFromForks: true
14+
addCheck: true
15+
addComment: false
16+
addBadge: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ React and Next.js Snippets with TypeScript support as well!🚀
99

1010
# Installation
1111

12-
- Install the VSCode extension
12+
- Install the [VSCode extension](https://marketplace.visualstudio.com/items?itemName=AvneeshAgarwal.react-nextjs-snippets)
1313
- Reload VSCode
1414
- Snippets are ready 🎉
1515

packages/vscode/snippets/next-javascript.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@
6464
],
6565
"description": "JavaScript: Next.js custom document"
6666
}
67-
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
{
22
"rimr": {
33
"prefix": "rimr",
4-
"body": [
5-
"import React from 'react';"
6-
],
4+
"body": ["import React from 'react';"],
75
"description": "TypeScript: import react"
86
},
97
"rimrd": {
108
"prefix": "rimrd",
11-
"body": [
12-
"import ReactDOM from 'react-dom';"
13-
],
9+
"body": ["import ReactDOM from 'react-dom';"],
1410
"description": "TypeScript: import React DOM"
1511
},
1612
"rimrs": {
1713
"prefix": "rimrs",
18-
"body": [
19-
"import React, { useState } from 'react';"
20-
],
14+
"body": ["import React, { useState } from 'react';"],
2115
"description": "Typescript: Import React and useState"
2216
},
2317
"rimrse": {
2418
"prefix": "rimrse",
25-
"body": [
26-
"import React, { useState, useEffect} from 'react';"
27-
],
19+
"body": ["import React, { useState, useEffect} from 'react';"],
2820
"description": "Typescript: Import React, useState and useEffect"
2921
},
3022
"rfct": {
@@ -44,32 +36,22 @@
4436
},
4537
"ruet": {
4638
"prefix": "ruet",
47-
"body": [
48-
"useEffect(() => {",
49-
"\t$1",
50-
"}, []);"
51-
],
39+
"body": ["useEffect(() => {", "\t$1", "}, []);"],
5240
"description": "TypeScript: useEffect hook"
5341
},
5442
"rust": {
5543
"prefix": "rust",
56-
"body": [
57-
"const [${1}, set${1}] = useState(${2});"
58-
],
44+
"body": ["const [${1}, set${1}] = useState(${2});"],
5945
"description": "TypeScript: useState hook"
6046
},
6147
"ruct": {
6248
"prefix": "ruct",
63-
"body": [
64-
"const ${1} = useContext(${2});"
65-
],
49+
"body": ["const ${1} = useContext(${2});"],
6650
"description": "TypeScript: useContext hook"
6751
},
6852
"rurt": {
6953
"prefix": "rurt",
70-
"body": [
71-
"const ${1} = useRef(${2});"
72-
],
54+
"body": ["const ${1} = useRef(${2});"],
7355
"description": "TypeScript: useRef hook"
7456
}
75-
}
57+
}

0 commit comments

Comments
 (0)