Browse Source

Add JS jshint/jscs configs

master
Chimo 6 years ago
parent
commit
104b2b2235
2 changed files with 31 additions and 0 deletions
  1. +10
    -0
      .jscsrc
  2. +21
    -0
      .jshintrc

+ 10
- 0
.jscsrc View File

@ -0,0 +1,10 @@
{
"preset": "jquery",
"validateLineBreaks": null,
"requireCamelCaseOrUpperCaseIdentifiers": null,
"maximumLineLength": 500,
"requireBlocksOnNewline": true,
"requireSpaceBeforeBlockStatements": true,
"disallowMixedSpacesAndTabs": true
}

+ 21
- 0
.jshintrc View File

@ -0,0 +1,21 @@
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"undef": true,
"unused": true,
"globals": {
"wb": true,
"Modernizr": true,
"yepnope": true
},
"jquery": true,
"browser": true,
"es3": true
}

Loading…
Cancel
Save