cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From audre...@apache.org
Subject [1/8] android commit: CB-12895 : added eslint and removed jshint
Date Fri, 23 Jun 2017 17:18:16 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master 5cc14b803 -> 55d7cf386


CB-12895 : added eslint and removed jshint


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

Branch: refs/heads/master
Commit: e36158a0daa8ec66b352191d5dd4e57cd4af04c5
Parents: 5cc14b8
Author: Audrey So <audreyso@apache.org>
Authored: Fri Jun 9 11:18:57 2017 -0700
Committer: Audrey So <audreyso@apache.org>
Committed: Fri Jun 23 08:07:07 2017 -0700

----------------------------------------------------------------------
 .eslintrc.yml | 10 ++++++++++
 package.json  | 14 ++++++++++----
 2 files changed, 20 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e36158a0/.eslintrc.yml
----------------------------------------------------------------------
diff --git a/.eslintrc.yml b/.eslintrc.yml
new file mode 100644
index 0000000..f6aae32
--- /dev/null
+++ b/.eslintrc.yml
@@ -0,0 +1,10 @@
+root: true
+extends: semistandard
+rules:
+  indent:
+    - error
+    - 4
+  camelcase: off
+  padded-blocks: off
+  operator-linebreak: off
+  no-throw-literal: off

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e36158a0/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 0bccf5c..bb6c120 100644
--- a/package.json
+++ b/package.json
@@ -19,10 +19,10 @@
     "apache"
   ],
   "scripts": {
-    "test": "npm run jshint && jasmine",
+    "test": "npm run eslint && jasmine",
     "cover": "istanbul cover --root bin/templates/cordova --print detail jasmine",
     "test-build": "jasmine --captureExceptions --color spec/e2e/*.spec.js",
-    "jshint": "jshint bin && jshint spec"
+    "eslint": "eslint bin && eslint spec"
   },
   "author": "Apache Software Foundation",
   "license": "Apache-2.0",
@@ -43,9 +43,15 @@
     "shelljs"
   ],
   "devDependencies": {
+    "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",
     "istanbul": "^0.4.2",
     "jasmine": "^2.5.2",
-    "jshint": "^2.6.0",
     "promise-matchers": "~0",
     "rewire": "^2.1.3"
   },
@@ -53,4 +59,4 @@
     "node": ">=4.0.0"
   },
   "engineStrict": true
-}
\ No newline at end of file
+}


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


Mime
View raw message