JavaScript Console.log error in Brackets console.log error in brackets,brackets console error

Every time i try to use console.log i get this kind of error.

ERROR: Unexpected console statement. [no-console] console.log(name + ' is a ' + age + ' years old ' + job + ' who is married ' + isMarried + ' . '); 36 ERROR: 'console' is not defined. [no-undef] console.log(name + ' is a ' + age + ' years old ' + job + ' who is married ' + isMarried + ' . '); 44 ERROR: Unexpected console statement. [no-console] console.log(name + ' is a ' + age + ' years old ' + job + ' who is married ' + isMarried + ' . '); 44 ERROR: 'console' is not defined. [no-undef] console.log(name + ' is a ' + age + ' years old ' + job + ' who is married ' + isMarried + ' . ');

What will be the error on this lines

Error Screenshot Here

Answer:1

After looking at the console error i see that this is related to the ESLint so to prevent ESLint rules on console at global level you can add this rule on rules object of your .eslintrc.json

"rules": {
    ...,
    "no-console": ["warning"],
    ...
} 

Or for specific line of console you can use /*eslint-disable*/ just above that line, like this

/*eslint-disable*/
console.log('some text'); 

/*eslint-enable*/     //this will now enable eslint rules that follows this
Answer:2

If you don't want to make change to .eslintrc file then add these two lines to disable it completely in the whole .js file:

/*global console*/ /* eslint no-console: "off" */

Answer:3

It's a ESlint error for not using console.

You can disable it by changing this rule.

For specific line you can disable it with a comment:

console.log('test') // eslint-disable-line no-console

For the next line, it can be disabled with comment:

// eslint-disable-next-line no-console
Answer:4

If my web server is configured to allow cross-origin requests in his crossdomain.xml, and also to deny them via CORS (Access-Control-Allow-Origin: site111.org), which configuration will be respected ...

If my web server is configured to allow cross-origin requests in his crossdomain.xml, and also to deny them via CORS (Access-Control-Allow-Origin: site111.org), which configuration will be respected ...

I'm trying to build a sample extension that can field incoming messages from a serial device connected to the computer and have that affect an on screen UI element. For example. Lets say the ...

I'm trying to build a sample extension that can field incoming messages from a serial device connected to the computer and have that affect an on screen UI element. For example. Lets say the ...

  1. getting my head wrapped around

Hi I try to receive a value from span from table like this: function getValueFromSibling(this) { var id = $(this).parent().siblings('span.childSibbling'); } Table looks like this: <tr> ...

Hi I try to receive a value from span from table like this: function getValueFromSibling(this) { var id = $(this).parent().siblings('span.childSibbling'); } Table looks like this: <tr> ...

  1. return value from init python
  2. python value from __init__
  3. value in javascript
  4. value_init
  5. value_init boost
  6. cannot return value from init
  7. g_value_init_from_instance

Is there any way to play sequence of notes in javascript piano sound. I've found a lot of libraries that can play a specific note but I assume that playing notes and making delays between would not be ...

Is there any way to play sequence of notes in javascript piano sound. I've found a lot of libraries that can play a specific note but I assume that playing notes and making delays between would not be ...