cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From audre...@apache.org
Subject [7/8] android commit: CB-12895 : added .eslintrc files to set up jasmine environment
Date Fri, 23 Jun 2017 17:18:22 GMT
CB-12895 : added .eslintrc files to set up jasmine environment


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

Branch: refs/heads/master
Commit: ac4ac935f629f76f4387e481ec6e1d6e972cd250
Parents: d83d49d
Author: Audrey So <audreyso@apache.org>
Authored: Mon Jun 19 10:21:43 2017 -0700
Committer: Audrey So <audreyso@apache.org>
Committed: Fri Jun 23 08:07:08 2017 -0700

----------------------------------------------------------------------
 spec/e2e/.eslintrc.yml                    | 12 ++++++++++++
 spec/e2e/create.spec.js                   |  1 -
 spec/e2e/plugin.spec.js                   |  1 -
 spec/e2e/update.spec.js                   |  1 -
 spec/unit/.eslintrc.yml                   | 12 ++++++++++++
 spec/unit/AndroidProject.spec.js          |  1 -
 spec/unit/AndroidStudio.spec.js           |  1 -
 spec/unit/Api.spec.js                     |  3 ---
 spec/unit/android_sdk.spec.js             |  2 --
 spec/unit/builders/GradleBuilder.spec.js  |  2 +-
 spec/unit/check_reqs.spec.js              |  2 --
 spec/unit/create.spec.js                  |  2 --
 spec/unit/emulator.spec.js                |  1 -
 spec/unit/pluginHandlers/common.spec.js   |  1 -
 spec/unit/pluginHandlers/handlers.spec.js |  1 -
 spec/unit/run.spec.js                     |  1 -
 16 files changed, 25 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/e2e/.eslintrc.yml
----------------------------------------------------------------------
diff --git a/spec/e2e/.eslintrc.yml b/spec/e2e/.eslintrc.yml
new file mode 100644
index 0000000..12c538c
--- /dev/null
+++ b/spec/e2e/.eslintrc.yml
@@ -0,0 +1,12 @@
+env:
+    jasmine: true
+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/ac4ac935/spec/e2e/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/e2e/create.spec.js b/spec/e2e/create.spec.js
index 3eaf9c7..75c448b 100644
--- a/spec/e2e/create.spec.js
+++ b/spec/e2e/create.spec.js
@@ -16,7 +16,6 @@
  specific language governing permissions and limitations
  under the License.
  */
-/* eslint-env jasmine */
 
 var actions = require('./helpers/projectActions.js');
 

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/e2e/plugin.spec.js
----------------------------------------------------------------------
diff --git a/spec/e2e/plugin.spec.js b/spec/e2e/plugin.spec.js
index 75405b9..9772ed5 100644
--- a/spec/e2e/plugin.spec.js
+++ b/spec/e2e/plugin.spec.js
@@ -16,7 +16,6 @@
  specific language governing permissions and limitations
  under the License.
  */
-/* eslint-env jasmine */
 
 var path = require('path');
 var actions = require('./helpers/projectActions.js');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/e2e/update.spec.js
----------------------------------------------------------------------
diff --git a/spec/e2e/update.spec.js b/spec/e2e/update.spec.js
index 9ce8c2a..7a6e4e9 100644
--- a/spec/e2e/update.spec.js
+++ b/spec/e2e/update.spec.js
@@ -16,7 +16,6 @@
  specific language governing permissions and limitations
  under the License.
  */
-/* eslint-env jasmine */
 
 var actions = require('./helpers/projectActions.js');
 var shell = require('shelljs');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/.eslintrc.yml
----------------------------------------------------------------------
diff --git a/spec/unit/.eslintrc.yml b/spec/unit/.eslintrc.yml
new file mode 100644
index 0000000..12c538c
--- /dev/null
+++ b/spec/unit/.eslintrc.yml
@@ -0,0 +1,12 @@
+env:
+    jasmine: true
+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/ac4ac935/spec/unit/AndroidProject.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/AndroidProject.spec.js b/spec/unit/AndroidProject.spec.js
index 532787f..755c6f3 100644
--- a/spec/unit/AndroidProject.spec.js
+++ b/spec/unit/AndroidProject.spec.js
@@ -16,7 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* eslint-env jasmine */
 
 var path = require('path');
 var AndroidProject = require('../../bin/templates/cordova/lib/AndroidProject');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/AndroidStudio.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/AndroidStudio.spec.js b/spec/unit/AndroidStudio.spec.js
index e485d0a..4db74d6 100644
--- a/spec/unit/AndroidStudio.spec.js
+++ b/spec/unit/AndroidStudio.spec.js
@@ -1,5 +1,4 @@
 
-/* eslint-env jasmine */
 var path = require('path');
 var AndroidStudio = require('../../bin/templates/cordova/lib/AndroidStudio');
 

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/Api.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/Api.spec.js b/spec/unit/Api.spec.js
index 68f6851..ec36eee 100644
--- a/spec/unit/Api.spec.js
+++ b/spec/unit/Api.spec.js
@@ -17,9 +17,6 @@
     under the License.
 */
 
-/* jshint node:true */
-/* eslint-env jasmine */
-
 var Q = require('q');
 var os = require('os');
 var path = require('path');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/android_sdk.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/android_sdk.spec.js b/spec/unit/android_sdk.spec.js
index ec0e9cd..178b7e6 100644
--- a/spec/unit/android_sdk.spec.js
+++ b/spec/unit/android_sdk.spec.js
@@ -16,8 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* jshint laxcomma:true */
-/* eslint-env jasmine */
 
 var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
 var superspawn = require('cordova-common').superspawn;

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/builders/GradleBuilder.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/builders/GradleBuilder.spec.js b/spec/unit/builders/GradleBuilder.spec.js
index 559cb35..bae5a79 100644
--- a/spec/unit/builders/GradleBuilder.spec.js
+++ b/spec/unit/builders/GradleBuilder.spec.js
@@ -1,4 +1,4 @@
-/* eslint-env jasmine */
+
 var Gradle_builder = require('../../../bin/templates/cordova/lib/builders/GradleBuilder.js');
 var fs = require('fs');
 var superspawn = require('cordova-common').superspawn;

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/check_reqs.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/check_reqs.spec.js b/spec/unit/check_reqs.spec.js
index 0917443..bf44c4a 100644
--- a/spec/unit/check_reqs.spec.js
+++ b/spec/unit/check_reqs.spec.js
@@ -16,8 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* jshint laxcomma:true */
-/* eslint-env jasmine */
 
 var check_reqs = require('../../bin/templates/cordova/lib/check_reqs');
 var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/create.spec.js b/spec/unit/create.spec.js
index 98891e8..0f38f4f 100644
--- a/spec/unit/create.spec.js
+++ b/spec/unit/create.spec.js
@@ -16,8 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* jshint laxcomma:true */
-/* eslint-env jasmine */
 
 var create = require('../../bin/lib/create');
 

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/emulator.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/emulator.spec.js b/spec/unit/emulator.spec.js
index 490d0a1..b6db761 100644
--- a/spec/unit/emulator.spec.js
+++ b/spec/unit/emulator.spec.js
@@ -16,7 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* eslint-env jasmine */
 
 var emu = require('../../bin/templates/cordova/lib/emulator');
 var superspawn = require('cordova-common').superspawn;

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/pluginHandlers/common.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/pluginHandlers/common.spec.js b/spec/unit/pluginHandlers/common.spec.js
index 6850d78..e0161fe 100644
--- a/spec/unit/pluginHandlers/common.spec.js
+++ b/spec/unit/pluginHandlers/common.spec.js
@@ -15,7 +15,6 @@
  * under the License.
  *
 */
-/* eslint-env jasmine */
 
 var rewire = require('rewire');
 var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/pluginHandlers/handlers.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/pluginHandlers/handlers.spec.js b/spec/unit/pluginHandlers/handlers.spec.js
index 8ed9a79..6e1e79e 100644
--- a/spec/unit/pluginHandlers/handlers.spec.js
+++ b/spec/unit/pluginHandlers/handlers.spec.js
@@ -16,7 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* eslint-env jasmine */
 
 var rewire = require('rewire');
 var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');

http://git-wip-us.apache.org/repos/asf/cordova-android/blob/ac4ac935/spec/unit/run.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/run.spec.js b/spec/unit/run.spec.js
index cceb130..881cc4a 100644
--- a/spec/unit/run.spec.js
+++ b/spec/unit/run.spec.js
@@ -16,7 +16,6 @@
     specific language governing permissions and limitations
     under the License.
 */
-/* eslint-env jasmine */
 
 var rewire = require('rewire');
 var run = rewire('../../bin/templates/cordova/lib/run');


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


Mime
View raw message