Skip to content

Instantly share code, notes, and snippets.

@JohannesFischer
Last active February 23, 2017 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohannesFischer/ad2642c80e0d103ab1eeeb2bbd17c631 to your computer and use it in GitHub Desktop.
Save JohannesFischer/ad2642c80e0d103ab1eeeb2bbd17c631 to your computer and use it in GitHub Desktop.
VS Code Snippets [javascript]
{
"Print to console": {
"prefix": "conl",
"body": [
"console.log($1);"
],
"description": "Log output to console"
},
"Print info to console": {
"prefix": "coni",
"body": [
"console.info($1);"
],
"description": "Info output to console"
},
"Print error to console": {
"prefix": "cone",
"body": [
"console.error($1);"
],
"description": "Error output to console"
},
"ESLint: Ignore File": {
"prefix": "esif",
"body": [
"/* eslint-disable */"
],
"description": "Disable file linting"
},
"ESLint: Ignore Line": {
"prefix": "esil",
"body": [
"// eslint-disable-line $1"
],
"description": "Ignore a scpecific rule for this line"
},
"ESLint: Dsiable Rule": {
"prefix": "esdr",
"body": [
"/* eslint-disable $1 */"
],
"description": "Disbale rule for this file"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment