Skip to content

Commit 6c1aa7e

Browse files
authored
Merge pull request #15 from Gelio/import-order
Change the order in import statements
2 parents b686df2 + be0aa1f commit 6c1aa7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

snippets/snippets.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"import": {
33
"prefix": "imp",
4-
"body": "import $1 from '${2:module}';$0",
4+
"body": "import ${2:moduleName} from '${1:module}';$0",
55
"description": "Imports entire module statement in ES6 syntax"
66
},
77
"importDestructing": {
88
"prefix": "imd",
9-
"body": "import { $1 } from '${2:module}';$0",
9+
"body": "import { $2 } from '${1:module}';$0",
1010
"description": "Imports only a portion of the module in ES6 syntax"
1111
},
1212
"importEverything": {
1313
"prefix": "ime",
14-
"body": "import * as ${1:alias} from '${2:module}';$0",
14+
"body": "import * as ${2:alias} from '${1:module}';$0",
1515
"description": "Imports everything as alias from the module in ES6 syntax"
1616
},
1717
"importAs": {
1818
"prefix": "ima",
19-
"body": "import {${1:originalName} as ${2:alias} } from '${3:module}';$0",
19+
"body": "import {${2:originalName} as ${3:alias} } from '${1:module}';$0",
2020
"description": "Imports a specific portion of the module by assigning a local alias in ES6 syntax"
2121
},
2222
"exportNamedFunction": {
@@ -45,10 +45,10 @@
4545
"body": "constructor(${1:params}) {\n\t${0}\n}",
4646
"description": "Add default constructor in a class in ES6 syntax"
4747
},
48-
"mehtod": {
48+
"method": {
4949
"prefix": "met",
5050
"body": "${1:methodName}(${2:params}) {\n\t${0}\n}",
51-
"description": "Creates a mehtod inside a class in ES6 syntax"
51+
"description": "Creates a method inside a class in ES6 syntax"
5252
},
5353
"propertyGet": {
5454
"prefix": "pge",

0 commit comments

Comments
 (0)