Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master 1e3276ec1 -> 919dbcec3


CB-12895 : added eslint and removed jshint


Project: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/b2b121b8
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/b2b121b8
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/b2b121b8

Branch: refs/heads/master
Commit: b2b121b856d0ea92fadca6cae5d8ff283c68f40f
Parents: 1e3276e
Author: Audrey So <audre...@apache.org>
Authored: Mon Jun 12 11:59:35 2017 -0700
Committer: Audrey So <audre...@apache.org>
Committed: Mon Jul 31 13:44:45 2017 -0700

----------------------------------------------------------------------
 .eslintrc.yml | 12 ++++++++++++
 package.json  | 15 ++++++++++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/b2b121b8/.eslintrc.yml
----------------------------------------------------------------------
diff --git a/.eslintrc.yml b/.eslintrc.yml
new file mode 100644
index 0000000..470bc46
--- /dev/null
+++ b/.eslintrc.yml
@@ -0,0 +1,12 @@
+root: true
+extends: semistandard
+plugins:
+  - standard
+  - promise
+rules:
+  indent:
+    - error
+    - 4
+  quotes:
+    - error
+    - single

http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/b2b121b8/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 2f9549b..a5417a7 100644
--- a/package.json
+++ b/package.json
@@ -15,14 +15,23 @@
     "wkwebview"
   ],
   "scripts": {
-    "test": "npm run jshint && npm run objc-tests",
+    "test": "npm run eslint && npm run objc-tests",
     "objc-tests": "cd tests/ios && npm test",
     "preobjc-tests": "cd tests/ios && npm install",
-    "jshint": "node_modules/.bin/jshint src"
+    "eslint": "node_modules/.bin/eslint src"
   },
   "author": "Apache Cordova",
   "license": "Apache-2.0",
   "devDependencies": {
-    "jshint": "^2.6.0"
+    "eslint": "^4.0.0",
+    "eslint-config-semistandard": "^11.0.0",
+    "eslint-config-standard": "^10.2.1",
+    "eslint-plugin-import": "^2.3.0",
+    "eslint-plugin-node": "^5.0.0",
+    "eslint-plugin-promise": "^3.5.0",
+    "eslint-plugin-standard": "^3.0.1"
+  },
+  "dependencies": {
+    "eslint": "^4.0.0"
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to