eslint set config file code example
Example 1: eslint ignore
/* eslint-disable */
alert('foo');
/* eslint-enable */
Example 2: eslint ignores
{
"ignorePatterns": ["temp.js", "**/vendor/*.js"],
"rules": {
//...
}
}
/* eslint-disable */
alert('foo');
/* eslint-enable */
{
"ignorePatterns": ["temp.js", "**/vendor/*.js"],
"rules": {
//...
}
}