Browse Source

Add JS hint/syntax check rules

master
Chimo 3 years ago
parent
commit
ea08b5484e
2 changed files with 12 additions and 0 deletions
  1. 11
    0
      .jscsrc
  2. 1
    0
      .jshintignore

+ 11
- 0
.jscsrc View File

@@ -0,0 +1,11 @@
1
+{
2
+	"preset": "jquery",
3
+	"validateLineBreaks": null,
4
+	"requireCamelCaseOrUpperCaseIdentifiers": null,
5
+	"maximumLineLength": 500,
6
+	"requireBlocksOnNewline": true,
7
+	"requireSpaceBeforeBlockStatements": true,
8
+	"disallowMixedSpacesAndTabs": true,
9
+    "requireCapitalizedComments": false,
10
+    "validateIndentation": 4
11
+}

+ 1
- 0
.jshintignore View File

@@ -0,0 +1 @@
1
+assets/js/vendor/*

Loading…
Cancel
Save