1.禁用代码块
/* eslint-disable */
consle.log("foo");
consle.log("bar");
/* eslint-disable */
2.禁用单行(放在该行代码后面)
consle.log("foo"); // eslint-disable-line
3.禁用下一行
// eslint-disable-next-line
console.log("foo")
4.禁用文件(放在代码最顶部)
/* eslint-disable */
consle.log("foo");
consle.log("bar");