Skip to content

Commit 9d8a17c

Browse files
committed
rename snippets id
1 parent d285f29 commit 9d8a17c

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

snippets/arrow.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,62 @@
44
"body": "() => $0",
55
"description": "Arrow function (implicit return)"
66
},
7-
"arrowFunctionWithArguments": {
7+
"arrowFunction.WithArguments": {
88
"prefix": "afa",
99
"body": "(${1:arg}) => $0",
1010
"description": "Arrow function (implicit return) with arguments"
1111
},
12-
"arrowFunctionWithArgumentDestructuring": {
12+
"arrowFunction.WithArgument.Destructuring": {
1313
"prefix": "afad",
1414
"body": "({${1:prop}, ${2:prop}}) => $0",
1515
"description": "Arrow function (implicit return) with argument destructuring"
1616
},
17-
"arrowFunctionObject": {
17+
"arrowFunction.Object": {
1818
"prefix": "afo",
1919
"body": "() => ( { ${1:prop}:${0:value}} )",
2020
"description": "Arrow function (object literal implicit return)"
2121
},
22-
"arrowFunctionObjectWithArguments": {
22+
"arrowFunction.Object.WithArguments": {
2323
"prefix": "afoa",
2424
"body": "(${1:arg}) => ( { ${2:prop}:${0:value}} )",
2525
"description": "Arrow function (object literal implicit return) with arguments"
2626
},
27-
"arrowFunctionExplicit": {
27+
"arrowFunction.Explicit": {
2828
"prefix": "afe",
2929
"body": ["() => {", "\t${1:return} $0", "}"],
3030
"description": "Arrow function (explicit return)"
3131
},
32-
"arrowFunctionExplicitWithArguments": {
32+
"arrowFunction.Explicit.WithArguments": {
3333
"prefix": "afea",
3434
"body": ["(${1:arg}) => {", "\t${2:return} $0", "}"],
3535
"description": "Arrow function (explicit return) with arguments"
3636
},
37-
"arrowFunctionExplicitWithArgumentDestructuring": {
37+
"arrowFunction.Explicit.WithArgument.Destructuring": {
3838
"prefix": "afead",
3939
"body": ["({${1:prop}, ${2:prop}}) => {", "\t${3:return} $0", "}"],
4040
"description": "Arrow function (explicit return) with argument destructuring"
4141
},
42-
"arrowFunctionExplicitEmpty": {
42+
"arrowFunction.Explicit.Empty": {
4343
"prefix": "afee",
4444
"body": ["() => {", "\t$0", "}"],
4545
"description": "Arrow function (without return)"
4646
},
47-
"arrowFunctionExplicitEmptyWithArguments": {
47+
"arrowFunction.Explicit.Empty.WithArguments": {
4848
"prefix": "afeea",
4949
"body": ["(${1:arg}) => {", "\t$0", "}"],
5050
"description": "Arrow function (without return) with arguments"
5151
},
52-
"arrowFunctionParentheses": {
52+
"arrowFunction.Parentheses": {
5353
"prefix": "afp",
5454
"body": ["() => {", "\t( ${0} )", "}"],
5555
"description": "Arrow function (explicit without return)"
5656
},
57-
"arrowFunctionParenthesesWithArguments": {
57+
"arrowFunction.Parentheses.WithArguments": {
5858
"prefix": "afpa",
5959
"body": ["(${1:arg}) => {", "\t( ${0} )", "}"],
6060
"description": "Arrow function (explicit without return) with arguments"
6161
},
62-
"arrowFunctionImmediatelyInvoque": {
62+
"arrowFunction.ImmediatelyInvoque": {
6363
"prefix": ["iiaf", "afii"],
6464
"body": "(() => $0)()",
6565
"description": "Arrow function Immediately Invoke"
@@ -69,47 +69,47 @@
6969
"body": "async () => $0",
7070
"description": "Arrow async function"
7171
},
72-
"arrowAsyncFunctionWithArguments": {
72+
"arrowAsyncFunction.WithArguments": {
7373
"prefix": "aafa",
7474
"body": "async (${1:arg}) => $0",
7575
"description": "Arrow async function (implicit return) with arguments"
7676
},
77-
"arrowAsyncFunctionImplicitWithArgumentDestructuring": {
77+
"arrowAsyncFunction.Implicit.WithArgument.Destructuring": {
7878
"prefix": "aafad",
7979
"body": "async ({ ${1:prop} }) => $0",
8080
"description": "Arrow async function (explicit return) with argument destructuring"
8181
},
82-
"arrowAsyncFunctionExplicitReturn": {
82+
"arrowAsyncFunction.Explicit.Return": {
8383
"prefix": "aafe",
8484
"body": ["async () => {", "\t${1:return} $0", "}"],
8585
"description": "Arrow async function (explicit with return)"
8686
},
87-
"arrowAsyncFunctionExplicitWithArguments": {
87+
"arrowAsyncFunction.Explicit.WithArguments": {
8888
"prefix": "aafea",
8989
"body": ["async (${1:arg}) => {", "\t${2:return} $0", "}"],
9090
"description": "Arrow async function (explicit without return) with arguments"
9191
},
92-
"arrowAsyncFunctionExplicitWithArgumentDestructuring": {
92+
"arrowAsyncFunction.Explicit.WithArgument.Destructuring": {
9393
"prefix": "aafead",
9494
"body": ["async ({ ${1:prop}, ${2:prop} }) => {", "\t${3:return} $0", "}"],
9595
"description": "Arrow async function (explicit return) with argument destructuring"
9696
},
97-
"arrowAsyncFunctionExplicitEmpty": {
97+
"arrowAsyncFunction.Explicit.Empty": {
9898
"prefix": "aafee",
9999
"body": ["async () => {", "\t$0", "}"],
100100
"description": "Arrow async function (without return)"
101101
},
102-
"arrowAsyncFunctionExplicitEmptyWithArguments": {
102+
"arrowAsyncFunction.Explicit.Empty.WithArguments": {
103103
"prefix": "aafeea",
104104
"body": ["async (${1:arg}) => {", "\t$0", "}"],
105105
"description": "Arrow async function (without return) with arguments"
106106
},
107-
"arrowAsyncAwaitFunctionExplicitWithArguments": {
107+
"arrowAsyncAwaitFunction.Explicit.WithArguments": {
108108
"prefix": "aaafea",
109109
"body": ["async (${1:arg}) => {", "\tconst ${2:name} = await ${0}", "}"],
110110
"description": "Arrow async-await function (explicit without return) with arguments"
111111
},
112-
"arrowAsyncFunctionImmediatelyInvoque": {
112+
"arrowAsyncFunction.ImmediatelyInvoque": {
113113
"prefix": ["iiaaf", "aafii"],
114114
"body": "(async () => $0)()",
115115
"description": "Arrow async function Immediately Invoke"

snippets/function-js.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"exportDefaultArrowFunction": {
2+
"export.Default.ArrowFunction": {
33
"prefix": "edaf",
44
"body": ["export default ($1) => {", "\t$0", "}"],
55
"description": "Export Default Anonymous Arrow function"
66
},
7-
"exportDefaultAsyncArrowFunction": {
7+
"export.Default.AsyncArrowFunction": {
88
"prefix": "edaaf",
99
"body": ["export default async ($1) => {", "\t$0", "}"],
1010
"description": "Export Default Async Anonymous Arrow function"
1111
},
12-
"constantArrowFunction": {
12+
"constant.ArrowFunction": {
1313
"prefix": "caf",
1414
"body": ["const ${1:name} = ($2) => $0"],
1515
"description": "Constant Arrow function (implicit return)"
1616
},
17-
"constantArrowFunctionExplicit": {
17+
"constant.ArrowFunction.Explicit": {
1818
"prefix": "cafe",
19-
"body": ["const ${1:name} = ($2) => {", "\treturn $0", "}"],
19+
"body": ["const ${1:name} = ($2) => {", "\t${3:return} $0", "}"],
2020
"description": "Constant Arrow function (explicit return)"
2121
},
22-
"exportConstantArrowFunction": {
22+
"export.Constant.ArrowFunction": {
2323
"prefix": "ecaf",
2424
"body": ["export const ${1:name} = ($2) => {", "\t$0", "}"],
2525
"description": "Export Constant Arrow function"
2626
},
27-
"constantAsyncArrowFunction": {
27+
"constant.AsyncArrowFunction": {
2828
"prefix": "caaf",
2929
"body": ["const ${1:name} = async ($2) => {", "\t$0", "}"],
3030
"description": "Constant Async Arrow function"
3131
},
32-
"exportConstantAsyncArrowFunction": {
32+
"export.Constant.AsyncArrowFunction": {
3333
"prefix": "ecaaf",
3434
"body": ["export const ${1:name} = async ($2) => {", "\t$0", "}"],
3535
"description": "Export Constant Async Arrow function"

snippets/function-ts.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"exportDefaultArrowFunction": {
2+
"export.Default.ArrowFunction": {
33
"prefix": "edaf",
44
"body": ["export default ($1) => {", "\t$0", "}"],
55
"description": "Export Default Anonymous Arrow function"
66
},
7-
"exportDefaultAsyncArrowFunction": {
7+
"export.Default.AsyncArrowFunction": {
88
"prefix": "edaaf",
99
"body": ["export default async ($1) => {", "\t$0", "}"],
1010
"description": "Export Default Async Anonymous Arrow function"
1111
},
12-
"constantArrowFunction": {
12+
"constant.ArrowFunction": {
1313
"prefix": "caf",
1414
"body": ["const ${1:name} = ($2) => $0"],
1515
"description": "Constant Arrow function (implicit return)"
1616
},
17-
"constantArrowFunctionExplicit": {
17+
"constant.ArrowFunction.Explicit": {
1818
"prefix": "cafe",
19-
"body": ["const ${1:name} = ($2) => {", "\treturn $0", "}"],
19+
"body": ["const ${1:name} = ($2) => {", "\t${3:return} $0", "}"],
2020
"description": "Constant Arrow function (explicit return)"
2121
},
22-
"exportConstantArrowFunction": {
22+
"export.Constant.ArrowFunction": {
2323
"prefix": "ecaf",
2424
"body": ["export const ${1:name} = ($2) => {", "\t$0", "}"],
2525
"description": "Export Constant Arrow function"
2626
},
27-
"constantAsyncArrowFunction": {
27+
"constant.Async.ArrowFunction": {
2828
"prefix": "caaf",
2929
"body": ["const ${1:name} = async ($2) => {", "\t$0", "}"],
3030
"description": "Constant Async Arrow function"
3131
},
32-
"exportConstantAsyncArrowFunction": {
32+
"export.Constant.AsyncArrowFunction": {
3333
"prefix": "ecaaf",
3434
"body": ["export const ${1:name} = async ($2) => {", "\t$0", "}"],
3535
"description": "Export Constant Async Arrow function"
3636
},
37-
"constantArrowFunctionType": {
37+
"constant.ArrowFunction.Type": {
3838
"prefix": "caft",
3939
"body": [
4040
"const ${1:name} = ($2) : ${3|string,number,boolean,custom|} => {",
@@ -43,7 +43,7 @@
4343
],
4444
"description": "Constant Arrow function (explicit return type)"
4545
},
46-
"exportConstantArrowFunctionType": {
46+
"export.ConstantArrow.Function.Type": {
4747
"prefix": "ecaft",
4848
"body": [
4949
"export const ${1:name} = ($2) : ${3|string,number,boolean,custom|} => {",
@@ -52,7 +52,7 @@
5252
],
5353
"description": "Export Constant Arrow function (explicit return type)"
5454
},
55-
"constantAsyncArrowFunctionType": {
55+
"constant.AsyncArrowFunction.Type": {
5656
"prefix": "caaft",
5757
"body": [
5858
"const ${1:name} = async ($2) : ${3|string,number,boolean,custom|} => {",
@@ -61,7 +61,7 @@
6161
],
6262
"description": "Constant Async Arrow function (explicit return type)"
6363
},
64-
"exportConstantAsyncArrowFunctionType": {
64+
"export.Constant.AsyncArrowFunction.Type": {
6565
"prefix": "ecaaft",
6666
"body": [
6767
"export const ${1:name} = async ($2) : ${3|string,number,boolean,custom|} => {",

snippets/promises.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"arrowFunctionPromise": {
2+
"arrowFunction.Promise": {
33
"prefix": "afpr",
44
"body": [
55
"${1:promise}",
@@ -9,32 +9,32 @@
99
],
1010
"description": "Arrow function Promise"
1111
},
12-
"arrowFunctionResponse": {
12+
"arrowFunction.Response": {
1313
"prefix": "afr",
1414
"body": "(${1:response}) => $0",
1515
"description": "Arrow function (implicit return) response"
1616
},
17-
"arrowFunctionResponseJson": {
17+
"arrowFunction.Response.Json": {
1818
"prefix": "afrj",
1919
"body": "(${1:response}) => ${1:response}.json()$0",
2020
"description": "Arrow function (implicit return) response json"
2121
},
22-
"arrowFunctionResponseData": {
22+
"arrowFunction.Response.Data": {
2323
"prefix": "afrd",
2424
"body": "(${1:response}) => ${1:response}.data$0",
2525
"description": "Arrow function (implicit return) response data"
2626
},
27-
"arrowFunctionExplicitResponse": {
27+
"arrowFunction.Explicit.Response": {
2828
"prefix": "afer",
2929
"body": ["(${1:response}) => {", "\treturn $0", "}"],
3030
"description": "Arrow function (explicit return)"
3131
},
32-
"arrowFunctionExplicitResponseJson": {
32+
"arrowFunction.Explicit.Response.Json": {
3333
"prefix": "aferj",
3434
"body": ["(${1:response}) => {", "\treturn ${1:response}.json()", "}$0"],
3535
"description": "Arrow function (explicit return) response json"
3636
},
37-
"arrowFunctionExplicitResponseData": {
37+
"arrowFunction.Explicit.Response.Data": {
3838
"prefix": "aferd",
3939
"body": ["(${1:response}) => {", "\treturn ${1:response}.data", "}$0"],
4040
"description": "Arrow function (explicit return) response data"

0 commit comments

Comments
 (0)