Skip to content
8 changes: 1 addition & 7 deletions .codacy/codacy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
runtimes:
- [email protected]
- [email protected]
- [email protected]
tools:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
22 changes: 11 additions & 11 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
with:
node-version: '18' # Choose your Node.js version

- name: Run Codacy Analysis CLI with Docker (optional)
run: |
export CODACY_CODE=$GITHUB_WORKSPACE
docker run \
--rm=true \
--env CODACY_CODE="$CODACY_CODE" \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$CODACY_CODE":"$CODACY_CODE" \
--volume /tmp:/tmp \
codacy/codacy-analysis-cli \
analyze --tool eslint --upload --project-token ${{ secrets.CODACY_PROJECT_TOKEN }} --max-allowed-issues 99999 --commit-uuid $GITHUB_SHA
- name: Run Codacy CLI
uses: codacy/codacy-cli-v2-action@main
env:
GH_TOKEN: ${{ secrets.GH_TOKEN}}
with:
api_token: ${{ secrets.CODACY_API_TOKEN }}
tool: eslint9
upload_report: true
provider: gh
owner: codacy-acme
repository: sample-javascript-project

- name: Install dependencies
run: |
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default [
{
rules: {
}
}
];
Loading