Skip to content

Commit

Permalink
add .jshintrc and .jscsrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 11, 2015
1 parent a79e810 commit 142b5e0
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"preset": "airbnb",

"esnext": false,
"requireTrailingComma": null,
"requireCommaBeforeLineBreak": null,
"requireCamelCaseOrUpperCaseIdentifiers": null,
"requirePaddingNewLinesBeforeLineComments": null,
"requirePaddingNewLinesAfterBlocks": null,
"safeContextKeyword": "self",

"maximumLineLength": 110,
"maxErrors": 1000,
"requireSpaceAfterLineComment": true
}
41 changes: 41 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"bitwise": false,
"curly": false,
"eqeqeq": true,
"freeze": true,
"latedef": "nofunc",
"maxparams": 7,
"noarg": true,
"shadow": "inner",
"undef": true,
"unused": true,

"boss": true,
"expr": true,
"eqnull": true,
"evil": true,
"loopfunc": true,
"proto": true,
"supernew": true,

"-W018": true,
"-W064": true,
"-W086": true,
"+W032": true,

"browser": false,
"browserify": false,
"node": true,
"nonstandard": true,
"typed": true,
"worker": false,

"camelcase": false,
"indent": 2,
"maxlen": 110,
"newcap": true,
"quotmark": "single",

"laxbreak": true,
"laxcomma": true
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
test/
img/
node_modules/
.jshintrc
.jscsrc
4 changes: 4 additions & 0 deletions lib/alias.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 142b5e0

Please sign in to comment.