Skip to content

Commit 4806d95

Browse files
authored
style: add/remove whitespaces (#21)
1 parent f22811a commit 4806d95

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

snippets/next-javascript.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
" return {",
77
" props: {},",
88
" };",
9-
"};",
10-
""
9+
"};"
1110
],
1211
"description": "Next.js Get Server Side Props Typescript"
1312
},
@@ -18,8 +17,7 @@
1817
" return {",
1918
" props: {},",
2019
" };",
21-
"};",
22-
""
20+
"};"
2321
],
2422
"description": "Next.js Get Static Props Typescript"
2523
}

snippets/next-typescript.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
" return {",
77
" props: {},",
88
" };",
9-
"};",
10-
""
9+
"};"
1110
],
1211
"description": "Next.js Get Server Side Props Typescript"
1312
},
@@ -18,8 +17,7 @@
1817
" return {",
1918
" props: {},",
2019
" };",
21-
"};",
22-
""
20+
"};"
2321
],
2422
"description": "Next.js Get Static Props Typescript"
2523
},
@@ -55,16 +53,18 @@
5553
"prefix": "nct",
5654
"body": [
5755
"import type { NextComponentType, NextPageContext } from \"next\";",
56+
"",
5857
"interface Props {}",
59-
"const ${1:${TM_FILENAME_BASE}}: NextComponentType<NextPageContext, {}, Props> = (",
58+
"",
59+
"const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}: NextComponentType<NextPageContext, {}, Props> = (",
6060
" props: Props,",
6161
") => {",
6262
" return (",
6363
" <div></div>",
6464
" )",
6565
"}",
6666
"",
67-
"export default ${1:${TM_FILENAME_BASE}}"
67+
"export default ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}"
6868
],
6969
"description": "Next.js Component Typescript"
7070
}

snippets/react-javascript.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
"React functional component": {
2323
"prefix": "rfc",
2424
"body": [
25-
"const ${1:${TM_FILENAME_BASE}} = () => {",
25+
"const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = () => {",
2626
" return <div></div>;",
2727
"};",
28-
"export default ${1:${TM_FILENAME_BASE}};",
29-
""
28+
"export default ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}};"
3029
],
3130
"description": "React functional component"
3231
},

snippets/react-typescript.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
" return <div></div>;",
1111
"}",
1212
"",
13-
"export default ${1:${TM_FILENAME_BASE}};",
14-
""
13+
"export default ${1:${TM_FILENAME_BASE}};"
1514
],
1615
"description": "React functional component Typescript"
1716
}

0 commit comments

Comments
 (0)