Skip to content

Instantly share code, notes, and snippets.

@kevinkace
Last active August 28, 2018 21:42
Show Gist options
  • Save kevinkace/5643e52b3d328b5345de870d2a525ad4 to your computer and use it in GitHub Desktop.
Save kevinkace/5643e52b3d328b5345de870d2a525ad4 to your computer and use it in GitHub Desktop.
{
// prefix used to trigger the snippet
// body is the snippet
// $1, $2 for tab stops, $0 for the final cursor position
// ${1:label}, ${2:another} for placeholders
"Mithril Component": {
"prefix": "mesm",
"body": [
"import state from \"../state\";",
"",
"import css from \"./index.css\";",
"",
"export default {",
" view() {",
" return m(\"div\", { class : css.$1 });",
" }",
"};",
""
],
"description": "Mithril ESM component"
},
"JSDoc": {
"prefix": "jsd",
"body": [
"/**",
" * ${1:description}",
" * ${2:@param {type\\} name - desc}",
" */"
],
"description": "JSDoc"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment