From 38328254a7e3da1365126f017dc6ec51e79c33ab Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Wed, 6 Jun 2018 11:49:09 +0800 Subject: [PATCH 1/2] - Linting (ESLint): Add `browser` to ignore, add `es6: true` (so `Promise` not seen as an undefined global) --- .eslintignore | 1 + .eslintrc | 1 + 2 files changed, 2 insertions(+) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..f0dc564 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +browser diff --git a/.eslintrc b/.eslintrc index fe79d4e..0d90853 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,6 +6,7 @@ --- env: node: true + es6: true rules: array-bracket-spacing: [2, "never"] From a1e9e20e6f5e29555cd1ece3e5cc4da4a5c9ec92 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Wed, 6 Jun 2018 11:53:47 +0800 Subject: [PATCH 2/2] - Add ".eslintignore" - npm: Simplify binary call --- .eslintignore | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index f0dc564..4625740 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,4 @@ +bower_components browser +coverage +node_modules diff --git a/package.json b/package.json index 7cd492e..76027d5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Utility that provides a single API for loading the content of a path/URL.", "main": "index.js", "scripts": { - "test": "./node_modules/gulp/bin/gulp.js" + "test": "gulp" }, "author": { "name": "Jeremy Whitlock",