Browse Source

Add JS jshint/jscs configs

master
Chimo 4 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 @@
1
+{
2
+    "preset": "jquery",
3
+    "validateLineBreaks": null,
4
+    "requireCamelCaseOrUpperCaseIdentifiers": null,
5
+    "maximumLineLength": 500,
6
+    "requireBlocksOnNewline": true,
7
+    "requireSpaceBeforeBlockStatements": true,
8
+    "disallowMixedSpacesAndTabs": true
9
+}
10
+

+ 21
- 0
.jshintrc View File

@@ -0,0 +1,21 @@
1
+{
2
+    "boss": true,
3
+    "curly": true,
4
+    "eqeqeq": true,
5
+    "eqnull": true,
6
+    "expr": true,
7
+    "immed": true,
8
+    "noarg": true,
9
+    "undef": true,
10
+    "unused": true,
11
+
12
+    "globals": {
13
+        "wb": true,
14
+        "Modernizr": true,
15
+        "yepnope": true
16
+    },
17
+    "jquery": true,
18
+    "browser": true,
19
+    "es3": true
20
+}
21
+

Loading…
Cancel
Save