From 845428d468574f531e3457ef6649502a30d348bc Mon Sep 17 00:00:00 2001 From: cathyxfeiyang <157295142+cathyxfeiyang@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:09:31 -0400 Subject: [PATCH] integrate standardJS --- .github/workflows/lint.yaml | 3 +++ install/package.json | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 58aaa48..7da3afc 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -81,3 +81,6 @@ jobs: - name: Run ESLint run: npm run lint + + - name: Run standard + run: npx standard diff --git a/install/package.json b/install/package.json index 919c51a..66b23de 100644 --- a/install/package.json +++ b/install/package.json @@ -12,6 +12,7 @@ "scripts": { "start": "npx tsc && node loader.js", "lint": "npx tsc && eslint --cache ./nodebb .", + "standard": "npx standard", "test": "npx tsc && nyc --reporter=html --reporter=text-summary mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage" @@ -106,6 +107,7 @@ "nodemailer": "6.8.0", "nprogress": "0.2.0", "passport": "0.6.0", + "standard": "*", "passport-http-bearer": "1.0.1", "passport-local": "1.0.0", "pg": "8.8.0",