diff --git a/package.json b/package.json index 29085205956f..4b4691abb3ba 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,18 @@ }, "standard": { "ignore": [ + "/out", + "/spec", "/vendor" - ], - "env": { - "mocha": true - }, - "globals": [ - "$", - "location" ] }, "private": true, "scripts": { "bootstrap": "python ./script/bootstrap.py", "build": "python ./script/build.py -c D", - "lint": "standard && python ./script/cpplint.py", + "lint": "npm run lint-js && npm run lint-cpp", + "lint-js": "standard && standard spec", + "lint-cpp": "python ./script/cpplint.py", "preinstall": "node -e 'process.exit(0)'", "repl": "python ./script/start.py --interactive", "start": "python ./script/start.py", diff --git a/spec/package.json b/spec/package.json index 6d49f0da8b8a..a6ca81c5ee98 100644 --- a/spec/package.json +++ b/spec/package.json @@ -18,5 +18,10 @@ "optionalDependencies": { "ffi": "2.0.0", "runas": "3.x" + }, + "standard": { + "env": { + "mocha": true + } } }