cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From audre...@apache.org
Subject [1/4] cordova-lib git commit: eslint and gitattributes to ensure LF, run eslint on integration tests
Date Fri, 27 Oct 2017 15:52:29 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master e8fec2519 -> 951329502


eslint and gitattributes to ensure LF, run eslint on integration tests


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

Branch: refs/heads/master
Commit: 9db9275c46f85e99f45e9172a1505c5a3ed5a0cb
Parents: e8fec25
Author: Jarrad Whitaker <akdor1154@gmail.com>
Authored: Sat Oct 21 11:25:36 2017 +1100
Committer: Jarrad Whitaker <JWhitaker@officeworks.com.au>
Committed: Fri Oct 27 10:15:17 2017 +1100

----------------------------------------------------------------------
 .eslintrc.yml  | 5 ++++-
 .gitattributes | 3 +++
 package.json   | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/9db9275c/.eslintrc.yml
----------------------------------------------------------------------
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 0cccb8c..d13d4b9 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -7,4 +7,7 @@ rules:
   camelcase: off
   padded-blocks: off
   operator-linebreak: off
-  no-throw-literal: off
\ No newline at end of file
+  no-throw-literal: off
+  linebreak-style:
+    - error
+    - unix

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/9db9275c/.gitattributes
----------------------------------------------------------------------
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4f487a1
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+* text=auto eol=lf
+/spec/plugman/projects/windows*/* text=auto eol=crlf
+/spec/plugman/projects/wp*/* text=auto eol=crlf

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/9db9275c/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 89a466a..6539a68 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,7 @@
   },
   "scripts": {
     "test": "npm run eslint && npm run unit-tests && npm run e2e-tests",
-    "eslint": "eslint src spec",
+    "eslint": "eslint src spec integration-tests",
     "unit-tests": "jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
     "cover": "istanbul cover --root src --print detail jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
     "e2e-tests": "jasmine JASMINE_CONFIG_PATH=integration-tests/jasmine.json"


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


Mime
View raw message