2015-12-08 08:20:04 -05:00
|
|
|
snippet const
|
2016-02-20 08:13:10 -05:00
|
|
|
const ${1} = ${0};
|
2015-12-08 08:20:04 -05:00
|
|
|
snippet let
|
2016-02-20 08:13:10 -05:00
|
|
|
let ${1} = ${0};
|
2016-12-27 09:46:49 -05:00
|
|
|
snippet im "import xyz from 'xyz'"
|
|
|
|
import ${1} from '${2:$1}';
|
|
|
|
snippet imas "import * as xyz from 'xyz'"
|
|
|
|
import * as ${1} from '${2:$1}';
|
|
|
|
snippet imm "import { member } from 'xyz'"
|
|
|
|
import { ${1} } from '${2}';
|
2015-12-08 08:20:04 -05:00
|
|
|
snippet cla
|
2016-02-20 08:13:10 -05:00
|
|
|
class ${1} {
|
|
|
|
${0}
|
2015-12-08 08:20:04 -05:00
|
|
|
}
|
|
|
|
snippet clax
|
2016-02-20 08:13:10 -05:00
|
|
|
class ${1} extends ${2} {
|
|
|
|
${0}
|
2015-12-08 08:20:04 -05:00
|
|
|
}
|
2016-11-09 12:22:55 -05:00
|
|
|
snippet clac
|
|
|
|
class ${1} {
|
|
|
|
constructor(${2}) {
|
|
|
|
${0}
|
|
|
|
}
|
|
|
|
}
|
2016-12-27 09:46:49 -05:00
|
|
|
snippet foro "for (const prop of object}) { ... }"
|
|
|
|
for (const ${1:prop} of ${2:object}) {
|
2016-11-09 12:22:55 -05:00
|
|
|
${0:$1}
|
|
|
|
}
|
|
|
|
# Generator
|
|
|
|
snippet fun*
|
|
|
|
function* ${1:function_name}(${2}) {
|
|
|
|
${0}
|
|
|
|
}
|
|
|
|
snippet c=>
|
|
|
|
const ${1:function_name} = (${2}) => {
|
|
|
|
${0}
|
|
|
|
}
|
|
|
|
snippet caf
|
|
|
|
const ${1:function_name} = (${2}) => {
|
|
|
|
${0}
|
|
|
|
}
|
2015-12-08 08:20:04 -05:00
|
|
|
snippet =>
|
2016-02-20 08:13:10 -05:00
|
|
|
(${1}) => {
|
|
|
|
${0}
|
2015-12-08 08:20:04 -05:00
|
|
|
}
|
2015-12-16 08:53:53 -05:00
|
|
|
snippet af
|
2016-02-20 08:13:10 -05:00
|
|
|
(${1}) => {
|
|
|
|
${0}
|
2015-12-16 08:53:53 -05:00
|
|
|
}
|
2015-12-08 08:20:04 -05:00
|
|
|
snippet sym
|
2016-02-20 08:13:10 -05:00
|
|
|
const ${1} = Symbol('${0}');
|
2015-12-08 08:20:04 -05:00
|
|
|
snippet ed
|
|
|
|
export default ${0}
|
2016-02-20 08:13:10 -05:00
|
|
|
snippet ${
|
|
|
|
${${1}}${0}
|