Skip to content

Commit 02de0bd

Browse files
committed
style: apply eslint --fix for @pleaseai/eslint-config (antfu v8)
Mechanical auto-fixes across source and docs after migrating to @pleaseai/eslint-config (antfu v8). Adds one eslint-skip comment in ARCHITECTURE.md for a pseudo-code fence, and normalizes YAML quote style in .github/workflows/release-please.yml. No behavior changes.
1 parent e912948 commit 02de0bd

34 files changed

Lines changed: 110 additions & 175 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
publish_only:
10-
description: 'Skip release-please and publish directly'
10+
description: Skip release-please and publish directly
1111
required: false
1212
default: false
1313
type: boolean

.please/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
schema_version: 2 # Config schema version (do not edit manually)
1+
schema_version: 2 # Config schema version (do not edit manually)
22

3-
language: en # Output language (ko | en)
3+
language: en # Output language (ko | en)
44

55
# GitHub integration (optional)
66
# github:
@@ -23,7 +23,7 @@ formatter:
2323
command: [bun, x, prettier, --write, $FILE]
2424
extensions: [.js, .jsx, .ts, .tsx, .json, .md]
2525
environment:
26-
BUN_BE_BUN: "1"
26+
BUN_BE_BUN: '1'
2727
biome:
2828
disabled: true
2929
gofmt:
@@ -33,7 +33,7 @@ formatter:
3333
review:
3434
cubic:
3535
enabled: true
36-
default-flags: "--json -b"
36+
default-flags: --json -b
3737
gemini:
3838
enabled: true
39-
default-flags: "--sandbox"
39+
default-flags: --sandbox

ARCHITECTURE.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ packages/format/src/
100100

101101
**Core API**:
102102
```typescript
103-
await Format.initFromProject(projectDir) // Load config, register formatters
104-
await Format.formatFile(filePath) // Find matching formatter, execute
105-
await Format.status() // List all formatters and their state
103+
await Format.initFromProject(projectDir) // Load config, register formatters
104+
await Format.formatFile(filePath) // Find matching formatter, execute
105+
await Format.status() // List all formatters and their state
106106
```
107107

108108
**Formatter lifecycle**: Extension match → enabled check (does config file exist
@@ -131,6 +131,9 @@ first file touch, caches clients by `(root, serverId)`, and fans out requests
131131
to all relevant servers for a given file extension.
132132

133133
**Server definition pattern** — each server declares:
134+
135+
<!-- eslint-skip -->
136+
134137
```typescript
135138
{
136139
id: string // e.g. 'typescript'
@@ -164,11 +167,11 @@ packages/dora/src/
164167
```typescript
165168
interface Provider {
166169
readonly name: string
167-
connect(): Promise<void>
168-
disconnect(): Promise<void>
169-
isConnected(): boolean
170-
listTools(): ToolDefinition[]
171-
callTool(name: string, args: unknown): Promise<ToolResult>
170+
connect: () => Promise<void>
171+
disconnect: () => Promise<void>
172+
isConnected: () => boolean
173+
listTools: () => ToolDefinition[]
174+
callTool: (name: string, args: unknown) => Promise<ToolResult>
172175
}
173176
```
174177

README.ko.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ formatter:
137137
command: [biome, format, --write, $FILE]
138138
extensions: [.ts, .tsx, .js, .jsx]
139139
prettier:
140-
disabled: true # 내장 포매터 비활성화
140+
disabled: true # 내장 포매터 비활성화
141141
custom:
142142
command: [my-formatter, $FILE]
143143
extensions: [.xyz]
@@ -147,9 +147,9 @@ lsp:
147147
typescript:
148148
enabled: true
149149
pyright:
150-
root: ./backend # 커스텀 루트 경로
150+
root: ./backend # 커스텀 루트 경로
151151
vue:
152-
enabled: false # 특정 서버 비활성화
152+
enabled: false # 특정 서버 비활성화
153153
```
154154
155155
`formatter: false` 또는 `lsp: false`로 전체 비활성화할 수 있습니다.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ formatter:
123123
command: [biome, format, --write, $FILE]
124124
extensions: [.ts, .tsx, .js, .jsx]
125125
prettier:
126-
disabled: true # Disable a built-in formatter
126+
disabled: true # Disable a built-in formatter
127127
custom:
128128
command: [my-formatter, $FILE]
129129
extensions: [.xyz]
@@ -133,9 +133,9 @@ lsp:
133133
typescript:
134134
enabled: true
135135
pyright:
136-
root: ./backend # Custom root path
136+
root: ./backend # Custom root path
137137
vue:
138-
enabled: false # Disable a specific server
138+
enabled: false # Disable a specific server
139139
```
140140
141141
Set `formatter: false` or `lsp: false` to globally disable either subsystem.

apps/docs/content/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: Auto-format and type-check hooks for AI coding
44
---
55

66
::u-page-hero
7-
#title
7+
# title
88
Code Please
99

10-
#description
10+
# description
1111
CLI and Claude Code plugin for AI-assisted coding with auto-formatting and LSP diagnostics.
1212

13-
#links
13+
# links
1414
:::u-button{to="/docs/getting-started/introduction" size="lg"}
1515
Get Started →
1616
:::
@@ -21,10 +21,10 @@ CLI and Claude Code plugin for AI-assisted coding with auto-formatting and LSP d
2121
::
2222

2323
::u-page-section
24-
#title
24+
# title
2525
Features
2626

27-
#content
27+
# content
2828
::u-page-grid
2929
:::u-page-card
3030
---
@@ -61,10 +61,10 @@ Features
6161
::
6262

6363
::u-page-section
64-
#title
64+
# title
6565
Quick Start
6666

67-
#content
67+
# content
6868
Install globally and add hooks to your Claude Code settings:
6969

7070
```bash

examples/lsp-typescript/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The demo will show:
6161
## Using LSPManager in Your Code
6262

6363
```typescript
64-
import { LSPManager, formatDiagnostic } from '@pleaseai/code-lsp'
64+
import { formatDiagnostic, LSPManager } from '@pleaseai/code-lsp'
6565

6666
// Initialize manager with project path
6767
const manager = new LSPManager('/path/to/project')
@@ -80,8 +80,8 @@ for (const [file, diags] of Object.entries(diagnostics)) {
8080
// Get hover info
8181
const hovers = await manager.hover({
8282
file: 'src/index.ts',
83-
line: 10, // 0-indexed
84-
character: 5, // 0-indexed
83+
line: 10, // 0-indexed
84+
character: 5, // 0-indexed
8585
})
8686

8787
// Go to definition

examples/lsp-typescript/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"module": "ESNext",
66
"moduleResolution": "bundler",
77
"strict": true,
8-
"noEmit": true,
9-
"skipLibCheck": true,
8+
"noFallthroughCasesInSwitch": true,
109
"noUnusedLocals": true,
1110
"noUnusedParameters": true,
12-
"noFallthroughCasesInSwitch": true
11+
"noEmit": true,
12+
"skipLibCheck": true
1313
},
1414
"include": ["src/**/*.ts", "demo.ts"]
1515
}

packages/code/src/commands/setup.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ async function setupAll(options: SetupOptions): Promise<void> {
127127

128128
for (const status of missing) {
129129
const tool = getTool(status.id)
130-
if (!tool)
131-
continue
130+
if (!tool) { continue }
132131

133132
process.stdout.write(` Installing ${status.name}... `)
134133

packages/code/src/hooks/lsp.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ export function formatDiagnosticsReport(
5656
for (const [filePath, diags] of Object.entries(diagnostics)) {
5757
for (const diag of diags) {
5858
const severity = diag.severity ?? 1
59-
if (severity === 1)
60-
errorCount++
61-
if (severity === 2)
62-
warningCount++
59+
if (severity === 1) { errorCount++ }
60+
if (severity === 2) { warningCount++ }
6361

6462
if (lines.length < DIAGNOSTICS_MAX_DISPLAY) {
6563
lines.push(formatDiagnostic(diag, filePath, projectDir))
@@ -68,15 +66,12 @@ export function formatDiagnosticsReport(
6866
}
6967

7068
const total = errorCount + warningCount
71-
if (total === 0)
72-
return null
69+
if (total === 0) { return null }
7370

7471
// Build summary line
7572
const parts: string[] = []
76-
if (errorCount > 0)
77-
parts.push(`${errorCount} error${errorCount > 1 ? 's' : ''}`)
78-
if (warningCount > 0)
79-
parts.push(`${warningCount} warning${warningCount > 1 ? 's' : ''}`)
73+
if (errorCount > 0) { parts.push(`${errorCount} error${errorCount > 1 ? 's' : ''}`) }
74+
if (warningCount > 0) { parts.push(`${warningCount} warning${warningCount > 1 ? 's' : ''}`) }
8075
const summary = `✗ ${parts.join(', ')} found`
8176

8277
// Add overflow indicator

0 commit comments

Comments
 (0)