Showing 75 of 75 total issues
Rule doesn't have all its properties in alphabetical order. Open
#jump_to a.small {
- Exclude checks
Rule is empty. Open
#jump_page .source:first-child {
- Exclude checks
Don't use IDs in selectors. Open
#jump_wrapper {
- Exclude checks
Don't use IDs in selectors. Open
#jump_to, #jump_page {
- Exclude checks
Don't use IDs in selectors. Open
#container { min-height: 100%; }
- Exclude checks
Values of 0 shouldn't have units specified. Open
margin: 15px 0 0px;
- Exclude checks
Heading (h1) has already been defined. Open
h1 {
- Exclude checks
Don't use IDs in selectors. Open
#jump_to, #jump_wrapper {
- Exclude checks
Don't use IDs in selectors. Open
#jump_page {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
ul.sections > li > div.content {
- Exclude checks
Don't use IDs in selectors. Open
#container {
- Exclude checks
Don't use IDs in selectors. Open
#jump_to a.small {
- Exclude checks
The box-sizing property isn't supported in IE6 and IE7. Open
box-sizing: content-box;
- Exclude checks
Unexpected console statement. Open
console.log(`Arc Example Online`.bold.cyan);
- Read upRead up
- Exclude checks
disallow the use of console
(no-console)
In JavaScript that is designed to be executed in the browser, it's considered a best practice to avoid using methods on console
. Such messages are considered to be for debugging purposes and therefore not suitable to ship to the client. In general, calls using console
should be stripped before being pushed to production.
console.log("Made it here.");
console.error("That shouldn't have happened.");
Rule Details
This rule disallows calls to methods of the console
object.
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!");
Options
This rule has an object option for exceptions:
-
"allow"
has an array of strings which are allowed methods of theconsole
object
Examples of additional correct code for this rule with a sample { "allow": ["warn", "error"] }
option:
/*eslint no-console: ["error", { allow: ["warn", "error"] }] */
console.warn("Log a warn level message.");
console.error("Log an error level message.");
When Not To Use It
If you're using Node.js, however, console
is used to output information to the user and so is not strictly used for debugging purposes. If you are developing for Node.js then you most likely do not want this rule enabled.
Related Rules
- [no-alert](no-alert.md)
- [no-debugger](no-debugger.md) Source: http://eslint.org/docs/rules/
Don't use IDs in selectors. Open
#background {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
#background {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
body {
- Exclude checks
Rule doesn't have all its properties in alphabetical order. Open
hr {
- Exclude checks
Don't use IDs in selectors. Open
#jump_to, #jump_page {
- Exclude checks
Missing standard property 'box-shadow' to go along with '-webkit-box-shadow'. Open
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
- Exclude checks