フロントエンド開発といえば。
react アプリの初期化( pnpm create vite@latest または npm init vite@latest <アプリ名> )

biome より高速、設定が楽、oxlint , oxfmt

● oxlint

・oxlsintのインストール

npm i -D oxlint

・oxlintを実行する

# ソースコードチェックのみ
npx oxlint .

# 自動修正
oxlint --fix .

package.json にコマンドを記述しておきます。

  "scripts": {
    "lint": "oxlint . --disable-unicorn-plugin",
    "lint:fix": "oxlint --disable-unicorn-plugin --fix .",
  },

・oxlsintで現在有効なルールの一覧を出力するコマンド

npx oxlint --rules

● oxfmt

npm i -D oxfmt

// 設定ファイルの作成
code .oxfmtrc.jsonc

.oxfmtrc.jsonc

{
  "$schema": "./node_modules/oxfmt/configuration_schema.json",
  "printWidth": 80
}
npx oxfmt --check

No.2744
05/15 08:57

edit