Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Eslint snippets for VSCODE
{
"eslint/disable": {
"prefix": "eslint-disable",
"description": "To temporarily disable rule warnings in your file",
"body": [
"/* eslint-disable $rules */"
]
},
"eslint/enable": {
"prefix": "eslint-enable",
"description": "To enable rules in your files",
"body": [
"/* eslint-enable $rules */"
]
},
"eslint/disable-line": {
"prefix": "eslint-line",
"description": "To disable all or some rules on a specific line",
"body": [
"// eslint-disable-line $rules"
]
},
"eslint/disable-next-line": {
"prefix": "eslint-n-line",
"description": "To disable all or some rules on a the next line",
"body": [
"// eslint-disable-next-line $rules"
]
},
"eslint/env": {
"prefix": "eslint-env",
"description": "set eslint environment for a file, node, browser, mocha etc",
"body": [
"/* eslint-env $env */"
]
},
"eslint/global": {
"prefix": "eslint-global",
"description": "define global vars for eslint",
"body": [
"/* global $globals */"
]
},
"eslint/config": {
"prefix": "eslint-config",
"description": "pass eslint configuration per file",
"body": [
"/* eslint $configs */"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment