Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

chore: add prettier config

Ralph Khreish3148b57f1b28
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a1ee51d3..b24f217e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,7 +14,7 @@ permissions:
contents: read
jobs:
- build:
+ setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -24,21 +24,55 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- cache: "npm"
+ cache: 'npm'
+
+ - name: Install Dependencies
+ id: install
+ run: npm ci
+ timeout-minutes: 2
- name: Cache node_modules
uses: actions/cache@v4
with:
- path: |
- node_modules
- */*/node_modules
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-
+ path: node_modules
+ key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
- - name: Install Dependencies
- run: npm ci
- timeout-minutes: 2
+ format-check:
+ needs: setup
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - name: Restore node_modules
+ uses: actions/cache@v4
+ with:
+ path: node_modules
+ key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
+
+ - name: Format Check
+ run: npm run format-check
+ env:
+ FORCE_COLOR: 1
+
+ test:
+ needs: setup
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - name: Restore node_modules
+ uses: actions/cache@v4
+ with:
+ path: node_modules
+ key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Run Tests
run: |
@@ -47,13 +81,13 @@ jobs:
NODE_ENV: test
CI: true
FORCE_COLOR: 1
- timeout-minutes: 15
+ timeout-minutes: 10
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
- name: test-results-node
+ name: test-results
path: |
test-results
coverage
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..39981020
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,6 @@
+# Ignore artifacts:
+build
+coverage
+.changeset
+tasks
+package-lock.json
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..764c3030
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,11 @@
+{
+ "printWidth": 80,
+ "tabWidth": 2,
+ "useTabs": true,
+ "semi": true,
+ "singleQuote": true,
+ "trailingComma": "none",
+ "bracketSpacing": true,
+ "arrowParens": "always",
+ "endOfLine": "lf"
+}
diff --git a/package.json b/package.json
index 435df9c4..360598ec 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,9 @@
"changeset": "changeset",
"release": "changeset publish",
"inspector": "CLIENT_PORT=8888 SERVER_PORT=9000 npx @modelcontextprotocol/inspector node mcp-server/server.js",
- "mcp-server": "node mcp-server/server.js"
+ "mcp-server": "node mcp-server/server.js",
+ "format-check": "prettier --check .",
+ "format": "prettier --write ."
},
"keywords": [
"claude",