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

biome , oxlint

● biome

npm install --save-dev --save-exact @biomejs/biome
// 設定ファイルの初期化
npx @biomejs/biome init --jsonc 

・biomeでソースコードの整形 = prettier

npx @biomejs/biome format

・biomeでlint

npx @biomejs/biome lint

・biomeで lint+prettier

両方を実行します。

npx @biomejs/biome check

・Biomeでno-restricted-importsを実現する方法

https://biomejs.dev/ja/linter/rules/no-restricted-imports/

● oxlint , oxfmt

npm i -D oxlint
npx oxlint

oxfmt

npm i -D oxfmt

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

.oxfmtrc.jsonc

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

No.2702
12/24 13:50

edit