diff --git a/.eslintrc b/.eslintrc index 3a7900e..6e5fb1a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,9 +16,6 @@ "mocha": true, "node": true }, - "globals": { - "Promise": false - }, "extends": "eslint:recommended", "ecmaFeatures": { "modules": true diff --git a/package.json b/package.json index 83afd34..9594074 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "rollup": "./bin/rollup" }, "scripts": { - "pretest": "eslint src/**/*.js && npm run build", + "pretest": "npm run lint && npm run build", "test": "mocha", "pretest-coverage": "npm run build", "test-coverage": "rm -rf coverage/* && istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js", @@ -17,7 +17,7 @@ "build": "git rev-parse HEAD > .commithash && rollup -c -o dist/rollup.js", "build:browser": "git rev-parse HEAD > .commithash && rollup -c rollup.config.browser.js -o dist/rollup.browser.js", "prepublish": "npm test && npm run build:browser", - "lint": "eslint src" + "lint": "eslint src browser" }, "repository": { "type": "git",