Skip to content

Instantly share code, notes, and snippets.

@felixjung
Created December 3, 2015 14:58
Show Gist options
  • Save felixjung/8dc32c873f2435a06f7c to your computer and use it in GitHub Desktop.
Save felixjung/8dc32c873f2435a06f7c to your computer and use it in GitHub Desktop.
Some ES2015 snippets for UltiSnips
extends javascript
priority -60
snippet imp "import { ... } from ..." b
import ${1:\{ ${2:export} \}} from '${0:library}';
endsnippet
snippet impl "import * as ... from ..." b
import * as ${1:alias} from '${0:library}';
endsnippet
snippet funa "(args...) => expression"
(${1:args}) => ${0:expression}
endsnippet
snippet funae "(args...) => { expression }"
(${1:args}) => \{
${0:expression}
\}
endsnippet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment