diff --git a/.gitignore b/.gitignore index 6fc6bbb..5ff6ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ /prod/ # Ignore packed files so that npm pack can be run locally -*.tgz \ No newline at end of file +*.tgz + +# Sonarcloud +.scannerwork \ No newline at end of file diff --git a/package.json b/package.json index 567edb0..e852ab5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build": "tsc", "format": "pnpm build && eslint src test --max-warnings 0 --fix", "lint": "pnpm build && eslint src test --max-warnings 0", - "test": "vitest run" + "test": "vitest run", + "scan": "SONAR_TOKEN='op://Environment Variables - Development/SonarCloud/eslint-config' op run -- sonar-scanner -Dsonar.organization=nhcarrigan -Dsonar.projectKey=nhcarrigan_eslint-config -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io" }, "repository": { "type": "git",