You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/10/30 21:55:27 UTC

[08/50] [abbrv] allura git commit: [#7920] Add configured jshint and jscs

[#7920] Add configured jshint and jscs


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/6da82e19
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/6da82e19
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/6da82e19

Branch: refs/heads/db/7919
Commit: 6da82e195442a8eef9ee7e7c604349d99da4bce9
Parents: 9a57931
Author: Heith Seewald <hs...@hsmb.local>
Authored: Tue Oct 6 03:28:03 2015 -0400
Committer: Heith Seewald <hs...@hsmb.local>
Committed: Thu Oct 29 20:21:31 2015 -0400

----------------------------------------------------------------------
 .jscsrc   |  9 +++++++++
 .jshintrc | 14 ++++++++++++++
 2 files changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/6da82e19/.jscsrc
----------------------------------------------------------------------
diff --git a/.jscsrc b/.jscsrc
new file mode 100644
index 0000000..0568d39
--- /dev/null
+++ b/.jscsrc
@@ -0,0 +1,9 @@
+{
+  "preset": "airbnb",
+  "requireCamelCaseOrUpperCaseIdentifiers": false,
+  "requireTrailingComma": false,
+  "esprima": "esprima-fb",
+  "fileExtensions": [
+    "es6.js"
+  ]
+}

http://git-wip-us.apache.org/repos/asf/allura/blob/6da82e19/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..f4ea9d1
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,14 @@
+{
+    "esnext": true,
+    "globalstrict": true,
+    "latedef": true,
+    "supernew": true,
+    "jquery": true,
+    "globals": {
+        "React": true,
+        "$": true,
+        "window": true,
+        "_": true,
+        "ReactReorderable": true
+    }
+}