allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [06/24] allura git commit: [#8035] Update eslintrc to include plugins
Date Tue, 26 Jan 2016 19:11:37 GMT
[#8035] Update eslintrc to include plugins


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

Branch: refs/heads/hs/8035
Commit: dc0593400074f26b0e4efcc135f02cf54a48a922
Parents: 5c21c3b
Author: Heith Seewald <heiths@gmail.com>
Authored: Thu Jan 21 15:45:44 2016 -0500
Committer: Heith Seewald <heiths@gmail.com>
Committed: Tue Jan 26 14:11:02 2016 -0500

----------------------------------------------------------------------
 .eslintrc | 51 +++++++++++++++++++--------------------------------
 1 file changed, 19 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/dc059340/.eslintrc
----------------------------------------------------------------------
diff --git a/.eslintrc b/.eslintrc
index 493b774..2ba7869 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,42 +1,29 @@
 {
   "rules": {
-    "indent": [2, 4],
-    "no-unused-vars": [2, {"vars": "all", "args": "none"}],
-    "no-console": 0,
-    "semi": [2, "always"],
-    "eqeqeq": 2,
-    "block-scoped-var": 2,
-    "consistent-return": 2,
-    // specify curly brace conventions for all control statements
-    "curly": [2, "all"],
-    // require default case in switch statements
-    "default-case": 2,
-    // disallow use of eval()
-    "no-eval": 2,
-    // disallow adding to native types
-    "no-extend-native": 2,
-    // disallow use of eval()-like methods
-    "no-implied-eval": 2,
-    // disallow this keywords outside of classes or class-like objects
-    "no-invalid-this": 2,
-    // disallow creation of functions within loops
-    "no-loop-func": 2,
-    // disallow declaring the same variable more then once
-    "no-redeclare": 2,
-    // disallow use of the with statement
-    "no-with": 2,
-    // require use of the second argument for parseInt()
-    "radix": 2
+    "indent": [
+      2,
+      4
+    ]
   },
   "globals": {
-
+    "ReactDOM": true,
+    "$": true,
+    "window": true,
+    "_": true,
+    "ReactReorderable": true
   },
-  "parser": "esprima-fb",
+  "parser": "babel-eslint",
   "env": {
-    "browser": true,
-    "jquery": true
+    "es6": true,
+    "browser": true
+  },
+  "extends": "google",
+  "ecmaFeatures": {
+    "jsx": true,
+    "forOf": true,
+    "experimentalObjectRestSpread": true
   },
-  "extends": "eslint:recommended",
   "plugins": [
+    "react"
   ]
 }
\ No newline at end of file


Mime
View raw message