diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b64aac71f..cb628b045 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,5 +25,5 @@ jobs: run: npm i -g npm@7 - run: npm ci --ignore-scripts - run: npm test - - run: npm exec eslint ../.. --ext .ts --ignore-path .gitignore + - run: npm run lint diff --git a/package.json b/package.json index 99ba71a1e..1ff5914f5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "build": "tsc", "test": "sh test/all.sh", + "lint": "eslint src --ext .ts", "serve": "docsify serve docs", "prepare": "npm run build && node lib/bin install" },