You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2017/05/10 06:45:46 UTC

[4/6] incubator-annotator git commit: Use more recommended eslint rules

Use more recommended eslint rules


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

Branch: refs/heads/master
Commit: b719d18379efd1f96155c2dca7b71397b39dbb79
Parents: 504b1ab
Author: Randall Leeds <ra...@apache.org>
Authored: Mon May 8 22:17:54 2017 -0700
Committer: Randall Leeds <ra...@apache.org>
Committed: Tue May 9 23:45:23 2017 -0700

----------------------------------------------------------------------
 .eslintrc.json         | 9 +++++++++
 scripts/.eslintrc.json | 6 ++++++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-annotator/blob/b719d183/.eslintrc.json
----------------------------------------------------------------------
diff --git a/.eslintrc.json b/.eslintrc.json
index 6136403..241a8fd 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,11 +1,20 @@
 {
   "root": true,
+  "env": {
+    "browser": true,
+    "es6": true
+  },
   "extends": [
+    "eslint:recommended",
     "google",
     "plugin:flowtype/recommended",
     "prettier",
     "prettier/flowtype"
   ],
+  "parserOptions": {
+    "ecmaVersion": 2017,
+    "sourceType": "module"
+  },
   "plugins": [
     "flowtype",
     "prettier"

http://git-wip-us.apache.org/repos/asf/incubator-annotator/blob/b719d183/scripts/.eslintrc.json
----------------------------------------------------------------------
diff --git a/scripts/.eslintrc.json b/scripts/.eslintrc.json
index 0874e6b..02bb75a 100644
--- a/scripts/.eslintrc.json
+++ b/scripts/.eslintrc.json
@@ -1,7 +1,13 @@
 {
+  "env": {
+    "node": true
+  },
   "globals": {
     "__dirname": false,
     "__filname": false,
     "__moduleName": true
+  },
+  "rules": {
+    "no-console": "off"
   }
 }