vim-snippets/snippets/javascript/javascript.es6.snippets
2016-01-08 18:12:22 +08:00

29 lines
353 B
Plaintext

snippet const
const ${1} = ${0};
snippet let
let ${1} = ${0};
snippet im
import ${1} from '${0}';
snippet cla
class ${1} {
${0}
}
snippet clax
class ${1} extends ${2} {
${0}
}
snippet =>
(${1}) => {
${0}
}
snippet af
(${1}) => {
${0}
}
snippet sym
const ${1} = Symbol('${0}');
snippet ed
export default ${0}
snippet ${
${${1}}${0}