Skip to content

에디터 설정

에디터 확장은 프로젝트의 oxlint --lsp를 사용하므로 oxlint를 로컬에 설치해야 합니다.

설치 방법은 빠른 시작을 보세요.

지원 에디터

VS Code

설치

공식 Oxc VS Code 확장:

Cursor 등 VS Code 기반 에디터와도 호환됩니다.

팀 설정

  1. 기여자에게 확장을 권장합니다.

.vscode/extensions.json:

.vscode/extensions.json
json
{
  "recommendations": ["oxc.oxc-vscode"]
}
  1. .vscode/settings.json에서 저장 시 수정 켜기:
.vscode/settings.json
json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.oxc": "always"
  }
}
  1. 타입 인지 린팅(선택):

프로젝트 전체에 켜려면 루트 Oxlint 설정에 넣습니다.

json
{
  "options": {
    "typeAware": true
  }
}
ts
import { defineConfig } from "oxlint";

export default defineConfig({
  options: {
    typeAware: true,
  },
});

또는 .vscode/settings.json에:

.vscode/settings.json
json
{
  "oxc.typeAware": true
}

oxc.typeAware가 비어 있으면 에디터는 루트 설정의 options.typeAware를 따릅니다. 명시하면 설정 파일 값을 덮어씁니다.

프로젝트에 oxlint-tsgolint가 설치되어 있어야 합니다. 자세한 내용은 타입 인지 린팅 문서를 보세요.

참고

Zed

설치

참고

JetBrains

IntelliJ IDEA, WebStorm.

설치

참고

Neovim

nvim-lspconfig

sh
npm i -g oxlint
lua
vim.lsp.enable('oxlint')

coc.nvim

vim
:CocInstall coc-oxc

기타 에디터

LSP를 지원하는 에디터(Emacs, Helix, Sublime 등)에는 다음을 설정합니다.

bash
oxlint --lsp

참고