Difference between revisions of "Js/jshintrc"

From Adam Meola - wiki
< Js
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
<div style="width: 94%; position: relative; left: 3%;">
 
<div style="width: 94%; position: relative; left: 3%;">
 
Note:
 
Note:
:This wiki is being assembled in no particuslar order. More is soon to come, but i've started here.</div>
+
:W083 and W030 should generally <b>NOT</b> be turned off...
 +
:I use them because: <ul><li>I KNOW i'm not writing a leak</li><li>I profile anyway</li><li>I've tested the one liner and it's faster!  SOMETIMES I don't care if it's readable!</li></ul>
 +
</div>
 
</div>
 
</div>
  
 
Full and Official documentation available at: https://jshint.com/docs/
 
Full and Official documentation available at: https://jshint.com/docs/

Latest revision as of 16:03, 25 March 2021

.jshintrc

This is the config file for the JSHint (or other JS linter) available in most modern IDEs.


"JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module."

Personally, I use this file to specify ES version, and to turn a few warnings off..

Here's my usual .jshintrc:

{ "esversion":6, "-W083": true, "-W030": true}

Note:

W083 and W030 should generally NOT be turned off...
I use them because:
  • I KNOW i'm not writing a leak
  • I profile anyway
  • I've tested the one liner and it's faster! SOMETIMES I don't care if it's readable!

Full and Official documentation available at: https://jshint.com/docs/