Adds 80 chars per line rule in the jshint configuration file.

This commit is contained in:
yanas 2014-10-14 16:42:55 +02:00
parent 1148deef0d
commit 5e4a8e79f2
1 changed files with 13 additions and 12 deletions

View File

@ -1,15 +1,16 @@
{ {
"asi": false, "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"expr": true, "expr": true, // true: Tolerate `ExpressionStatement` as Programs
"loopfunc": true, "loopfunc": true, // true: Tolerate functions being defined in loops
"curly": false, "curly": false, // true: Require {} for every new block or scope
"evil": true, "evil": true, // true: Tolerate use of `eval` and `new Function()`
"white": true, "white": true,
"undef": true, "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"browser": true, "browser": true, // Web Browser (window, document, etc)
"node": true, "node": true, // Node.js
"trailing": true, "trailing": true,
"indent": 4, "indent": 4, // {int} Number of spaces to use for indentation
"latedef": true, "latedef": true, // true: Require variables/functions to be defined before being used
"newcap": true "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
"maxlen": 80 // {int} Max number of characters per line
} }