Skip to content

Commit

Permalink
MDL-48620 JavaScript: Update .jshintrc to comply with coding style
Browse files Browse the repository at this point in the history
* eqeqeq: We do not require use of ===
* maxlen: Coding style aims for 132 characters
* indent: 4 Characters (Helps some editors but does not warn in new version of jshint)
* undef: Warn about variables used before they are defined
* predef: Specify that we define the M variable elsewhere
  • Loading branch information
andrewnicols committed Jan 23, 2015
1 parent 0375273 commit 2357166
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .jshintrc
Expand Up @@ -5,7 +5,7 @@
"browser": true,
"curly": true,
"debug": false,
"eqeqeq": true,
"eqeqeq": false,
"eqnull": false,
"es5": false,
"esnext": false,
Expand All @@ -15,14 +15,15 @@
"funcscope": false,
"globalstrict": false,
"immed": true,
"indent": 4,
"iterator": false,
"lastsemic": false,
"latedef": true,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"maxerr": 500,
"maxlen": 180,
"maxlen": 132,
"multistr": false,
"newcap": true,
"noarg": true,
Expand All @@ -32,6 +33,9 @@
"onevar": false,
"passfail": false,
"plusplus": false,
"predef": [
"M"
],
"proto": false,
"regexdash": false,
"regexp": false,
Expand All @@ -43,6 +47,7 @@
"supernew": false,
"trailing": true,
"unused": true,
"undef": true,
"white": false,
"yui": true
}

0 comments on commit 2357166

Please sign in to comment.