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 2016/01/27 21:22:40 UTC
[26/50] allura git commit: [#8035] Update eslintrc to include plugins
[#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/24d21ad8
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/24d21ad8
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/24d21ad8
Branch: refs/heads/hs/8035
Commit: 24d21ad86985184ef11a771835df796bea169ef2
Parents: b8e8f9f
Author: Heith Seewald <he...@gmail.com>
Authored: Thu Jan 21 15:45:44 2016 -0500
Committer: Heith Seewald <he...@gmail.com>
Committed: Wed Jan 27 15:21:27 2016 -0500
----------------------------------------------------------------------
.eslintrc | 51 +++++++++++++++++++--------------------------------
1 file changed, 19 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/24d21ad8/.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