JavaScript What does the number in eslint rule arrays mean?

I'm totally new to eslint configurations. I'm using tslint for typescript for quite a while now so I'm familiar with the concept.

eslint uses for many rules a syntax like

"no-cond-assign": [2, "always"]

or just

"no-constant-condition": 2

What does the number mean? The documentation is pretty huge and I'm not able to google or find it in the docs on the fly

Answer:1

I have some problem when I try to upsert my object with new ones(parsed from xml file),but I got the following error: MongoError: exception: After applying the update to the document {_id: ObjectId(...

I have some problem when I try to upsert my object with new ones(parsed from xml file),but I got the following error: MongoError: exception: After applying the update to the document {_id: ObjectId(...

Our website is currently using jQuery library and getting a traffic of about 1 million monthly. We want to include API centric approach, so decided to move to Javascript MVC and have chosen angularJS ...

Our website is currently using jQuery library and getting a traffic of about 1 million monthly. We want to include API centric approach, so decided to move to Javascript MVC and have chosen angularJS ...

I have the following code : var fomattedDate = moment(myDate).format("L"); Sometimes moment(myDate).format("L") returns "Invalid date", I want to know if there is a way to prevent that and return an ...

I have the following code : var fomattedDate = moment(myDate).format("L"); Sometimes moment(myDate).format("L") returns "Invalid date", I want to know if there is a way to prevent that and return an ...

I'm using a simple custom directive for a modified input field which occurs throughout my application: app.directive('editor', function() { return { restrict: 'E', templateUrl: '...

I'm using a simple custom directive for a modified input field which occurs throughout my application: app.directive('editor', function() { return { restrict: 'E', templateUrl: '...

  1. angularjs custom directive input validation
  2. angularjs custom directive input
  3. angularjs directive input validation