diff --git a/.eslintrc.js b/.eslintrc.js index 22c9049..cf278b3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + "root": true, "env": { "es6": true }, diff --git a/package.json b/package.json index 26499f5..6f463f2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "rollup -c tools/rollup.module.js && rollup -c tools/rollup.browser.js && rollup -c tools/rollup.browser.min.js", "prepare": "npm test && rm -rf build && npm run build", - "test": "eslint --env browser src/** && eslint --env node tools/** && tslint -c tslint.json types/**.ts" + "test": "eslint src/** tools/** && tslint -c tslint.json types/**.ts" }, "repository": { "type": "git", diff --git a/src/.eslintrc.js b/src/.eslintrc.js new file mode 100644 index 0000000..eb25143 --- /dev/null +++ b/src/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + "env": { + "browser": true + } +} diff --git a/tools/.eslintrc.js b/tools/.eslintrc.js new file mode 100644 index 0000000..620617f --- /dev/null +++ b/tools/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + "env": { + "node": true + } +}