Skip to content

Commit

Permalink
feat(biome): Add biome.json configuration files for flows and functions
Browse files Browse the repository at this point in the history
Co-authored-by: Yash Bhesaniya <[email protected]>
  • Loading branch information
preetvadaliya and yashbhesaniya committed Oct 27, 2024
1 parent 4e64cd5 commit 4fa0b5b
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
46 changes: 46 additions & 0 deletions flows/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"rules": {
"recommended": true,
"style": {
"noImplicitBoolean": "warn"
},
"correctness": {
"useExhaustiveDependencies": "off",
"noUnusedImports": "error"
}
}
},
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
}
},
"formatter": {
"formatWithErrors": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteProperties": "preserve",
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"trailingCommas": "none",
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
}
}
}
46 changes: 46 additions & 0 deletions functions/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"rules": {
"recommended": true,
"style": {
"noImplicitBoolean": "warn"
},
"correctness": {
"useExhaustiveDependencies": "off",
"noUnusedImports": "error"
}
}
},
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
}
},
"formatter": {
"formatWithErrors": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteProperties": "preserve",
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"trailingCommas": "none",
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
}
}
}

0 comments on commit 4fa0b5b

Please sign in to comment.