Add JS formatting rules (jscs/jshint)

master
Chimo 7 years ago
parent c9119446df
commit ade1bb6c13
  1. 10
      .jscsrc
  2. 14
      .jshintrc

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

@ -0,0 +1,14 @@
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"undef": true,
"unused": true,
"jquery": true,
"browser": true,
"es3": true
}