1. νμ μ¬μ μ건 & μμ€ν μꡬμ¬μ (Prerequisites & System Requirements)
π» μμ€ν μ€μΉ λ° μ€ν μꡬμ¬μ (System Requirements)
| νλͺ© | μ΅μ μ¬μ (Minimum) | κΆμ₯ μ¬μ (Recommended) | μ°Έκ³ λ° λΉκ³ |
|---|---|---|---|
| μ΄μ체μ (OS) | Linux, macOS 12+, Windows 10/11 | 64λΉνΈ λ©ν°μ½μ΄ νκ²½ (Linux/macOS/WSL2) | λ€μ΄ν°λΈ Rust λ°μ΄λ리 (npm ν¨ν€μ§ λ΄λΆ ν¬ν¨) |
| Node.js λ°νμ | Node.js 18+ (λλ Bun / Deno) | Node.js 22 LTS+ / pnpm 9+ | ν¨ν€μ§ λ§€λμ (pnpm, npm, bun) μ€νμ© |
| CPU μν€ν μ² | 2μ½μ΄ x86_64 λλ ARM64 | 4μ½μ΄ μ΄μ λ©ν°μ½μ΄ CPU | νμΌ λ¨μ λ³λ ¬ AST νμ± λ° λ¦°νΈ/ν¬λ§· μ²λ¦¬ |
| λ©λͺ¨λ¦¬ (RAM) | μ΅μ 512 MB | 2 GB μ΄μ | λκ·λͺ¨ λͺ¨λ Έλ ν¬(μλ§ κ° νμΌ)μμλ μλ°± MB λ΄μΈ |
| μλν° μ°λ | VS Code / Cursor / Zed / JetBrains | 곡μ Biome / Oxc IDE νμ₯ μ€μΉ | μ μ₯ μ μλ ν¬λ§·(formatOnSave) λ° μ¦μ μ§λ¨ |
[!IMPORTANT] 곡μ λ²€λ μ΅μ λ²μ μ 보 (Biome & Oxc):
- Biome μ΅μ λ²μ : Biome v2.6+ (
@biomejs/biomev2.6.7) β λ¨μΌ λκ΅¬λ‘ ν¬λ§€ν° + λ¦°ν° + Import μ λ ¬μ μ 곡νλ©°, νμ μΈμ§(Type-aware) κ·μΉκ³Ό CSS/GraphQL/JSON/HTML μ§μμ κ°ννμ΅λλ€.- Oxc (
oxlint) μ΅μ λ²μ : oxlint v1.93.0 β VoidZero(Evan You ν)μ Rust κΈ°λ° μ°¨μΈλ JS/TS ν΄μ²΄μΈμΌλ‘, ESLint λλΉ 50~100λ°° λΉ λ₯Έ λ¦°νΈ μλλ₯Ό μλν©λλ€.
π οΈ νλ‘μ νΈ μ€μΉ
# Biome μ€μΉ (ν¬λ§€ν° + λ¦°ν° ν΅ν©)
pnpm add -D -E @biomejs/biome
# Oxc (oxlint) μ€μΉ (μ΄κ³ μ μ μ© λ¦°ν°)
pnpm add -D oxlint
# Biome μ€μ νμΌ(biome.json) μ΄κΈ° μμ±
pnpm exec biome init
2. Rust JS/TS ν΄μ²΄μΈ μν€ν μ² λ©ν λͺ¨λΈ (ASCII Diagram)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Biome & Oxc (Rust-Native JS/TS Toolchain) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β [ κΈ°μ‘΄ Node.js μνκ³ ] [ Rust κΈ°λ° ν΅ν©/μ΄κ³ μ λκ΅¬μ²΄μΈ ] β
β ESLint + μλ§μ νλ¬κ·ΈμΈ βββΆ Biome (Format + Lint + Assist ν΅ν©) β
β + Prettier + eslint-config λλ Oxc (oxlint: 0.1μ΄λ μ΄κ³ μ λ¦°νΈ) β
β (μμ μ΄ μμ, μ€μ μΆ©λ) (μμ~μλ°± ms μμ, λ¨μΌ λ°μ΄λ리) β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Biome νμ΄νλΌμΈ: `biome check --write .` β β
β β 1. Format (Prettier 97%+ νΈν μ½λ μ€νμΌ μ λ ¬) β β
β β 2. Lint (noUnusedVariables, useExhaustiveDependencies λ±) β β
β β 3. Assist (organizeImports μλ μ λ ¬ λ° λ―Έμ¬μ© import μ κ±°) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
3. [μ΄λ³΄μ 1λ¨κ³] Biome ν΅μ¬ CLI & biome.json νμ€ μ€μ
1) μμ£Ό μ°λ Biome CLI λͺ λ Ήμ΄
# ν¬λ§· + λ¦°νΈ + Import μ λ ¬ μΌκ΄ κ²μ¬ (CIμ©, νμΌ μμ μ ν¨)
pnpm exec biome ci .
# ν¬λ§· + λ¦°νΈ + μμ ν μλ μμ μΌκ΄ μ μ© (λ‘컬 κ°λ°μ©)
pnpm exec biome check --write .
# ν¬λ§€ν
λ§ μ€ν
pnpm exec biome format --write src/
# λ¦°νΈλ§ μ€ν (μμ νμ§ μμ μμ κΉμ§ ν¬ν¨ μ --unsafe)
pnpm exec biome lint --write --unsafe src/
# κΈ°μ‘΄ ESLint / Prettier μ€μ μ biome.jsonμΌλ‘ μλ λ§μ΄κ·Έλ μ΄μ
pnpm exec biome migrate eslint --write
pnpm exec biome migrate prettier --write
2) μ€λ¬΄ νμ€ biome.json (TypeScript + React/Next.js/Astro λμ)
{
"$schema": "https://biomejs.dev/schemas/2.6.0/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["src/**", "!dist/**", "!.astro/**"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "error",
"noUnusedVariables": "warn"
},
"style": {
"noNonNullAssertion": "warn",
"useConst": "error"
},
"suspicious": {
"noExplicitAny": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always",
"trailingCommas": "es5"
}
}
}
4. [2λ¨κ³] Oxc (oxlint) μ΄κ³ μ λ¦°ν
& νμ΄λΈλ¦¬λ μ λ΅
λκ·λͺ¨ λͺ¨λ
Έλ ν¬μμ 0.1μ΄ λ¨μμ λ¦°νΈ νΌλλ°±μ΄ νμν λ oxlintλ₯Ό λ¨λ
λλ Biome/ESLintμ ν¨κ» μ¬μ©ν©λλ€.
1) oxlint ν΅μ¬ λͺ
λ Ήμ΄
# κΈ°λ³Έ λ¦°νΈ μ€ν (λ³λ μ€μ μμ΄ μ¦μ λμ)
pnpm exec oxlint .
# React / TypeScript / Unicorn / Import νλ¬κ·ΈμΈ νμ±ν λ° μλ μμ
pnpm exec oxlint --fix -D correctness -W suspicious --react-plugin --typescript-plugin src/
# μ€μ νμΌ(.oxlintrc.json) κΈ°λ° μ€ν
pnpm exec oxlint -c .oxlintrc.json .
2) .oxlintrc.json μ€μ μμ
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "unicorn", "import"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn"
},
"rules": {
"no-console": "warn",
"typescript/no-explicit-any": "warn",
"react/jsx-key": "error"
},
"ignorePatterns": ["dist/**", "node_modules/**", ".next/**"]
}
5. [3λ¨κ³] VS Code μ€μ & GitHub Actions CI μλν
1) .vscode/settings.json (μ μ₯ μ μλ ν¬λ§· & Import μ λ ¬)
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit",
"quickfix.biome": "explicit"
},
"[typescript]": { "editor.defaultFormatter": "biomejs.biome" },
"[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" },
"[json]": { "editor.defaultFormatter": "biomejs.biome" }
}
2) GitHub Actions μ΄κ³ μ CI μν¬νλ‘μ°
name: Code Quality (Biome & Oxc)
on: [push, pull_request]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Run Biome CI (Format + Lint + Imports)
run: pnpm exec biome ci .
- name: Run Oxlint Fast Check
run: pnpm exec oxlint --deny-warnings src/
6. μ€λ¬΄ μ£Όμμ¬ν & νλ‘λμ 체ν¬λ¦¬μ€νΈ
- VCS
.gitignoreμ°λ:biome.jsonμμ"vcs": { "enabled": true, "useIgnoreFile": true }λ₯Ό μΌλ©΄node_modules,dist,.nextλ±μ μ€λ³΅μΌλ‘ μ μΈν νμ μμ΄ μλμΌλ‘ 무μν©λλ€. - ESLint/Prettier μΆ©λ λ°©μ§: Biomeμ λμ
νλ€λ©΄
.prettierrc,.eslintrc*,prettierVS Code νμ₯μ λΉνμ±ννκ±°λ μ κ±°ν΄ μ μ₯ μ μ΄μ€ ν¬λ§€ν μΆ©λμ λ°©μ§νμΈμ. - μ νν λ²μ κ³ μ (
-E): Biomeμ λ§μ΄λ μ λ°μ΄νΈλ§λ€ ν¬λ§€ν μΈλΆ κ·μΉμ΄ κ°μ λ μ μμΌλ―λ‘package.jsonμ"@biomejs/biome": "2.6.7"μ²λΌ μ νν λ²μ μ κ³ μ (-E)νλ κ²μ΄ νμ κ° diff λ Έμ΄μ¦λ₯Ό μ€μ΄λ λΉκ²°μ λλ€. -
package.jsonμ€ν¬λ¦½νΈ νμ€ν:"check": "biome check --write .","ci:check": "biome ci ."μ€ν¬λ¦½νΈλ₯Ό λ±λ‘ν΄ λͺ¨λ νμμ΄ λμΌν λͺ λ Ήμ΄λ₯Ό μ¬μ©νλλ‘ ν΅μΌνμΈμ.
μ견 λ° μ§λ¬Έ
0μμ§ λ±λ‘λ μκ²¬μ΄ μμ΅λλ€. 첫 λ²μ§Έ λκΈμ λ¨κ²¨λ³΄μΈμ!
λκΈ μμ
λκΈ μμ