biome.jsonc

{
	"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
	"vcs": {
		"defaultBranch": "main",
		"enabled": true,
		"clientKind": "git",
		"useIgnoreFile": true
	},
	"files": {
		"ignoreUnknown": false,
		"includes": ["**"]
	},
	"formatter": {
		"enabled": true,
		"indentStyle": "tab",
		"includes": ["**"]
	},
	"assist": {
		"actions": {
			"recommended": true,
			"source": {
				"organizeImports": "on",
				"useSortedAttributes": "on",
				"useSortedProperties": "on"
			}
		}
	},
	"linter": {
		"enabled": true,
		"includes": ["**"],
		"rules": {
			"recommended": true,
			"a11y": "on",
			"performance": {
				"useTopLevelRegex": "warn"
			},
			"security": {
				"noSecrets": "off"
			},
			"correctness": {
				"noNodejsModules": "off",
				"noUnresolvedImports": "off"
			},
			"complexity": {
				"noForEach": "error"
			},
			"nursery": {
				"noFloatingPromises": "warn"
			},
			"style": {
				"useComponentExportOnlyModules": "off"
			}
		},
		"domains": {
			"test": "all",
			"react": "all",
			"project": "all"
		}
	},
	"overrides": [
		{
			"includes": ["packages/test-utils/**"],
			"linter": {
				"rules": {
					"correctness": {
						"noUndeclaredDependencies": "off"
					}
				}
			}
		},
		{
			"includes": ["test/**"],
			"linter": {
				"rules": {
					"suspicious": {
						"noExplicitAny": "off"
					},
					"style": {
						"noNonNullAssertion": "off"
					}
				}
			}
		}
	],
	"javascript": {
		"formatter": {
			"quoteStyle": "double"
		}
	},
	"json": {
		"parser": {
			"allowComments": true,
			"allowTrailingCommas": true
		}
	}
}