vim-snippets/snippets/javascript/javascript.es6.snippets

27 lines
329 B
Plaintext
Raw Normal View History

2015-12-07 02:56:47 -05:00
snippet const
const ${0} = ${1};
snippet let
let ${0} = ${1};
snippet im
import ${0} from '${1}';
snippet cla
2015-12-07 02:56:47 -05:00
class ${0} {
${1}
}
snippet clax
2015-12-07 02:56:47 -05:00
class ${0} extends ${1} {
${2}
}
snippet =>
(${0}) => {
${1}
}
snippet af
(${0}) => {
${1}
}
2015-12-07 02:56:47 -05:00
snippet sym
const ${0} = Symbol('${1}');
snippet ed
export default ${0}