You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2018/08/14 14:38:59 UTC

[cordova-fetch] branch master updated: Add ESLint config file for tests (#41)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-fetch.git


The following commit(s) were added to refs/heads/master by this push:
     new 4152a0d  Add ESLint config file for tests (#41)
4152a0d is described below

commit 4152a0d25f1d24fa3051e4bf2f787924a617a837
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Tue Aug 14 16:38:57 2018 +0200

    Add ESLint config file for tests (#41)
    
    Instead of configuring rules per file using comments.
---
 spec/.eslintrc.yml      | 4 ++++
 spec/fetch-unit.spec.js | 3 ---
 spec/fetch.spec.js      | 2 --
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/spec/.eslintrc.yml b/spec/.eslintrc.yml
new file mode 100644
index 0000000..77cb525
--- /dev/null
+++ b/spec/.eslintrc.yml
@@ -0,0 +1,4 @@
+env:
+    jasmine: true
+rules:
+    prefer-promise-reject-errors: off
diff --git a/spec/fetch-unit.spec.js b/spec/fetch-unit.spec.js
index a62c8e1..7bb9a04 100644
--- a/spec/fetch-unit.spec.js
+++ b/spec/fetch-unit.spec.js
@@ -15,9 +15,6 @@
     under the License.
 */
 
-/* eslint-env jasmine */
-/* eslint-disable prefer-promise-reject-errors */
-
 const rewire = require('rewire');
 
 describe('fetch', function () {
diff --git a/spec/fetch.spec.js b/spec/fetch.spec.js
index 0023eea..15b45a0 100644
--- a/spec/fetch.spec.js
+++ b/spec/fetch.spec.js
@@ -15,8 +15,6 @@
     under the License.
 */
 
-/* eslint-env jasmine */
-
 var fetch = require('..');
 var uninstall = fetch.uninstall;
 


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