From 90f50d0a8ebef1aab7199c58c684ddc7960f7e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Connor=20B=C3=A4r?= Date: Sat, 22 Jun 2024 16:56:08 +0200 Subject: [PATCH] Force array items onto multiple lines --- .changeset/config.json | 4 +++- biome.jsonc | 25 ++++++++++++------------- src/configs/biome/biome.jsonc | 16 +++++++++++++--- tsconfig.json | 13 ++++++++++--- 4 files changed, 38 insertions(+), 20 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 314c1b98..f998650b 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,9 @@ "$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "sumup-oss/foundry" } + { + "repo": "sumup-oss/foundry" + } ], "commit": false, "fixed": [], diff --git a/biome.jsonc b/biome.jsonc index 53f912be..95bdd5ca 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,7 +1,11 @@ { "$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", - "extends": ["./src/configs/biome/biome.jsonc"], - "organizeImports": { "enabled": false }, + "extends": [ + "./src/configs/biome/biome.jsonc" + ], + "organizeImports": { + "enabled": false + }, "linter": { "rules": { "style": { @@ -10,7 +14,9 @@ "level": "error", "options": { "requireAscii": true, - "filenameCases": ["kebab-case"] + "filenameCases": [ + "kebab-case" + ] } } }, @@ -21,16 +27,9 @@ }, "overrides": [ { - // Workaround to match the format that npm uses - "include": ["package.json"], - "json": { - "formatter": { - "lineWidth": 1 - } - } - }, - { - "include": ["src/lib/logger.ts"], + "include": [ + "src/lib/logger.ts" + ], "linter": { "rules": { "suspicious": { diff --git a/src/configs/biome/biome.jsonc b/src/configs/biome/biome.jsonc index 48287a25..ca35a763 100644 --- a/src/configs/biome/biome.jsonc +++ b/src/configs/biome/biome.jsonc @@ -9,7 +9,9 @@ "enabled": true, "formatWithErrors": false, "indentStyle": "space", - "ignore": ["dist/**"] + "ignore": [ + "dist/**" + ] }, "linter": { "enabled": true, @@ -30,7 +32,7 @@ "noUnusedPrivateClassMembers": "error", "noUnusedVariables": "error", "useArrayLiterals": "error", - "useExhaustiveDependencies": "warn", + "useExhaustiveDependencies": "error", "useHookAtTopLevel": "error" }, "performance": { @@ -54,12 +56,20 @@ "noSkippedTests": "error" } }, - "ignore": ["dist/**"] + "ignore": [ + "dist/**" + ] }, "javascript": { "formatter": { "quoteProperties": "preserve", "quoteStyle": "single" } + }, + "json": { + "formatter": { + // Workaround to force array items onto multiple lines + "lineWidth": 1 + } } } diff --git a/tsconfig.json b/tsconfig.json index b789b793..6cc24c09 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,8 @@ { "compilerOptions": { - "lib": ["ES2020"], + "lib": [ + "ES2020" + ], "target": "ES2020", "module": "commonjs", "declaration": true, @@ -13,6 +15,11 @@ "isolatedModules": true, "outDir": "./dist" }, - "include": ["src/**/*"], - "typeRoots": ["./node_modules/@types", "./src/types/"] + "include": [ + "src/**/*" + ], + "typeRoots": [ + "./node_modules/@types", + "./src/types/" + ] }