Browse Source

Remove .eslintrc Promise global. Fix lint redundancy in package.

better-aggressive
Oskar Segersvärd 9 years ago
parent
commit
ae9643fb31
  1. 3
      .eslintrc
  2. 4
      package.json

3
.eslintrc

@ -16,9 +16,6 @@
"mocha": true, "mocha": true,
"node": true "node": true
}, },
"globals": {
"Promise": false
},
"extends": "eslint:recommended", "extends": "eslint:recommended",
"ecmaFeatures": { "ecmaFeatures": {
"modules": true "modules": true

4
package.json

@ -8,7 +8,7 @@
"rollup": "./bin/rollup" "rollup": "./bin/rollup"
}, },
"scripts": { "scripts": {
"pretest": "eslint src/**/*.js && npm run build", "pretest": "npm run lint && npm run build",
"test": "mocha", "test": "mocha",
"pretest-coverage": "npm run build", "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", "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": "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", "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", "prepublish": "npm test && npm run build:browser",
"lint": "eslint src" "lint": "eslint src browser"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save