You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/10/28 19:01:39 UTC
[17/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/a6ab638e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a6ab638e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a6ab638e
Branch: refs/heads/hs/7919
Commit: a6ab638e4af4a10378f3e41ba053de9eaa225cb4
Parents: 4c96a0c
Author: Heith Seewald <hs...@hsmb.local>
Authored: Tue Oct 6 03:28:03 2015 -0400
Committer: Heith Seewald <hs...@hsmb.local>
Committed: Wed Oct 28 14:00:43 2015 -0400
----------------------------------------------------------------------
.jscsrc | 9 +++++++++
.jshintrc | 14 ++++++++++++++
2 files changed, 23 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/a6ab638e/.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/a6ab638e/.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
+ }
+}