一、屏蔽段落校验
1.eslint-disable
/* eslint-disable */
console.log(22);
console.log(23);
/* eslint-enable */
2.eslint-disable no-alert, no-console
/* eslint-disable no-alert, no-console */
console.log(24);
console.log(25);
alert(25);
/* eslint-enable no-alert, no-console */
3.eslint-disable no-alert, no-console 屏蔽整个文件校验
/* eslint-disable no-alert, no-console*/ // 放在头部,对整个文件范围屏蔽eslint检查
console.log(26);
console.log(27);
alert(27);
4.eslint-disable-line 当前行校验
eslint-disable-next-line 取消下一行校验
console.log(28); // eslint-disable-line
alert(30); /* eslint-disable-line */
// eslint-disable-next-line
console.log(29);
/* eslint-disable-next-line */
console.log(30);