Last active
August 28, 2018 21:42
-
-
Save kevinkace/5643e52b3d328b5345de870d2a525ad4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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