diff --git a/package.json b/package.json index d11effd5..13a1cf62 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "scripts": { "prepublishOnly": "safe-publish-latest", "prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly", - "prelint": "eclint check", - "lint": "eslint . bin/*", + "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", + "lint": "eslint --ext .js,.cjs,.mjs . bin/*", "pretest": "npm run lint", "test": "npm run tests-only", "posttest": "aud --production",