Skip to content

Commit d948848

Browse files
authored
Merge pull request #15 from betegon/chore/add-lint-scripts
chore(lint): add ultracite lint scripts via turbo
2 parents 06a33f4 + 4911ae7 commit d948848

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ turbo typecheck # Check all packages
2929
bun run typecheck # Check single package (from packages/cli)
3030

3131
# Linting & Formatting
32-
npx ultracite check # Check for issues
33-
npx ultracite fix # Auto-fix issues (run before committing)
32+
bun run lint # Check for issues (via turbo)
33+
bun run lint:fix # Auto-fix issues (run before committing)
3434

3535
# Testing
3636
bun test # Run all tests

biome.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"extends": ["ultracite/core"]
3+
"extends": ["ultracite/core"],
4+
"javascript": {
5+
"globals": ["Bun"]
6+
}
47
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "sentry-cli-next",
33
"version": "0.1.0",
44
"private": true,
5+
"packageManager": "bun@1.3.3",
56
"description": "A gh-like CLI for Sentry",
67
"workspaces": [
78
"packages/*"
@@ -10,6 +11,7 @@
1011
"dev": "turbo dev",
1112
"build": "turbo build",
1213
"lint": "turbo lint",
14+
"lint:fix": "turbo lint:fix",
1315
"typecheck": "turbo typecheck"
1416
},
1517
"devDependencies": {

packages/cli/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"package": "bun run script/package.ts",
1414
"prepublish": "bun run script/build.ts && bun run script/package.ts",
1515
"typecheck": "tsc --noEmit",
16+
"lint": "bunx ultracite check",
17+
"lint:fix": "bunx ultracite fix",
1618
"test": "bun test",
1719
"test:e2e": "bun test test/e2e"
1820
},

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"lint": {
1313
"dependsOn": ["^lint"]
1414
},
15+
"lint:fix": {
16+
"cache": false
17+
},
1518
"typecheck": {
1619
"dependsOn": ["^typecheck"]
1720
}

0 commit comments

Comments
 (0)