disallow the use of console (no-console)

Examples of incorrect code for this rule:

/*eslint no-console: "error"*/

console.log("Log a debug level message.");
console.warn("Log a warn level message.");
console.error("Log an error level message.");

Examples of correct code for this rule:

/*eslint no-console: "error"*/

// custom console
Console.log("Hello world!");

来源:http://eslint.org/docs/rules/no-console

你可能感兴趣的:(disallow the use of console (no-console))