From 4fa0b5bd10922d5e54f8d29269153af7981ab2b5 Mon Sep 17 00:00:00 2001 From: Preet Vadaliya Date: Mon, 28 Oct 2024 00:23:55 +0100 Subject: [PATCH] feat(biome): Add biome.json configuration files for flows and functions Co-authored-by: Yash Bhesaniya --- flows/biome.json | 46 ++++++++++++++++++++++++++++++++++++++++++++ functions/biome.json | 46 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 flows/biome.json create mode 100644 functions/biome.json diff --git a/flows/biome.json b/flows/biome.json new file mode 100644 index 0000000..d80ab79 --- /dev/null +++ b/flows/biome.json @@ -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 + } + } +} diff --git a/functions/biome.json b/functions/biome.json new file mode 100644 index 0000000..d80ab79 --- /dev/null +++ b/functions/biome.json @@ -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 + } + } +}