Eslint ignorieren
/* eslint-disable no-alert, no-console */
alert('foo');
console.log('bar');
/* eslint-enable no-alert, no-console */
baruchiro
/* eslint-disable no-alert, no-console */
alert('foo');
console.log('bar');
/* eslint-enable no-alert, no-console */
/* eslint-disable */
alert('foo');
/* eslint-enable */
# Same as gitignore
**/*.js
# or
{
"ignorePatterns": ["**/vendor/*.js"],
}
// eslint-disable-next-line no-use-before-define
{
"ignorePatterns": ["temp.js", "**/vendor/*.js"],
"rules": {
//...
}
}