Skip to content

Commit

Permalink
Move jshint config into a separate file
Browse files Browse the repository at this point in the history
It seems better for clarity to store different things in different places.
package.json is already a big and complicated file, and .jshintrc is
a special file precisely for storing this configuration.

Not to mention that jshint authors themselves have switched away
from using jshintConfig key:
jshint/jshint@91bf14d
  • Loading branch information
denis-sokolov committed Sep 16, 2014
1 parent 6bc715f commit e978be3
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
54 changes: 54 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"bitwise": true,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"latedef": true,
"maxlen": 150,
"newcap": true,
"noarg": true,
"nonbsp": true,
"nonew": true,
"plusplus": true,
"trailing": true,
"undef": true,
"unused": true,

"strict": false,

"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"smarttabs": false,
"shadow": false,
"sub": false,
"supernew": false,
"validthis": false,
"noyield": false,

"browser": true,
"node": true,

"nomen": false,
"onevar": true,
"passfail": false,
"white": false
}
54 changes: 0 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,60 +71,6 @@
"jshint": "2.5.x",
"requirejs": "2.x",
"coveralls": "2.x"
},
"jshintConfig": {
"bitwise": true,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"latedef": true,
"maxlen": 150,
"newcap": true,
"noarg": true,
"nonbsp": true,
"nonew": true,
"plusplus": true,
"trailing": true,
"undef": true,
"unused": true,

"strict": false,

"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"smarttabs": false,
"shadow": false,
"sub": false,
"supernew": false,
"validthis": false,
"noyield": false,

"browser": true,
"node": true,

"nomen": false,
"onevar": true,
"passfail": false,
"white": false
}
}

0 comments on commit e978be3

Please sign in to comment.