From ac644d468eb352f694e4f7f490c3ddbf7c24c535 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Tue, 14 Jan 2025 17:30:07 +0100 Subject: [PATCH] ci: add prettier --- .github/workflows/ci.yaml | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 759e2ae..62ecfa6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,3 +25,8 @@ jobs: - name: check for uncommited changes run: git diff --exit-code - run: npm test + prettier: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npx prettier --check *.js diff --git a/package.json b/package.json index 6c69419..73d3f5f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "author": "Nikita Galaiko", "license": "MIT", "dependencies": { - "nan": "^2.18.0" + "nan": "^2.18.0", + "prettier": "^3.4.2" }, "devDependencies": { "tree-sitter-cli": "^0.20.8"