Skip to content

Commit

Permalink
Force array items onto multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Jun 22, 2024
1 parent 73e5d4d commit 90f50d0
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
25 changes: 12 additions & 13 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -10,7 +14,9 @@
"level": "error",
"options": {
"requireAscii": true,
"filenameCases": ["kebab-case"]
"filenameCases": [
"kebab-case"
]
}
}
},
Expand All @@ -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": {
Expand Down
16 changes: 13 additions & 3 deletions src/configs/biome/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"ignore": ["dist/**"]
"ignore": [
"dist/**"
]
},
"linter": {
"enabled": true,
Expand All @@ -30,7 +32,7 @@
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error",
"useArrayLiterals": "error",
"useExhaustiveDependencies": "warn",
"useExhaustiveDependencies": "error",
"useHookAtTopLevel": "error"
},
"performance": {
Expand All @@ -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
}
}
}
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"lib": ["ES2020"],
"lib": [
"ES2020"
],
"target": "ES2020",
"module": "commonjs",
"declaration": true,
Expand All @@ -13,6 +15,11 @@
"isolatedModules": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
"typeRoots": ["./node_modules/@types", "./src/types/"]
"include": [
"src/**/*"
],
"typeRoots": [
"./node_modules/@types",
"./src/types/"
]
}

0 comments on commit 90f50d0

Please sign in to comment.