Closed5
[React x TypeScript] Biome を試す
ピン留めされたアイテム
ピン留めされたアイテム
npm i -D @biome/biome
npx @biomejs/biome init
biome.json
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noConfusingVoidType": "off"
},
"a11y": {
"useKeyWithClickEvents": "off",
"useAltText": "off",
"noSvgWithoutTitle": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"files": { "ignore": ["dist", "release"] }
}
.vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"quickfix.biome": "always",
"source.organizeImports.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
package.json
{
"scripts": {
"lint": "biome check --write ."
}
}
このスクラップは1ヶ月前にクローズされました