npm i -D oxlint
# ソースコードチェックのみ
npx oxlint .
# 自動修正
oxlint --fix .
package.json にコマンドを記述しておきます。
"scripts": {
"lint": "oxlint . --disable-unicorn-plugin",
"lint:fix": "oxlint --disable-unicorn-plugin --fix .",
},
npx oxlint --rules
npm i -D oxfmt
// 設定ファイルの作成
code .oxfmtrc.jsonc
.oxfmtrc.jsonc
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80
}
npx oxfmt --check