diff --git a/.eslintignore b/.eslintignore index ea4c27c..2f36697 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,3 @@ pjax.js -node_modules/** pjax.min.js *.json diff --git a/.prettierignore b/.prettierignore index ea4c27c..2f36697 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ pjax.js -node_modules/** pjax.min.js *.json diff --git a/package.json b/package.json index 1c363d3..35baf50 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "uglify-js": "^3.3.8" }, "scripts": { - "lint": "eslint **/*.js", + "lint": "eslint .", "standalone": "browserify index.js --standalone Pjax > pjax.js", "build": "npm run standalone && uglifyjs pjax.js -o pjax.min.js", "build-debug": "browserify index.js --debug --standalone Pjax > pjax.js", @@ -64,7 +64,7 @@ }, "lint-staged": { "*.js": [ - "eslint --fix **/*.js", + "eslint --fix", "prettier --write", "git add" ]