mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
136 lines
3.1 KiB
JSON
136 lines
3.1 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true,
|
|
"defaultBranch": "master"
|
|
},
|
|
"organizeImports": {
|
|
"enabled": false
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": false,
|
|
"a11y": {
|
|
"noBlankTarget": "error"
|
|
},
|
|
"correctness": {
|
|
"noGlobalObjectCalls": "error",
|
|
"noUnreachable": "error",
|
|
"useHookAtTopLevel": "error",
|
|
"useIsNan": "error"
|
|
},
|
|
"complexity": {
|
|
"useFlatMap": "error",
|
|
"useOptionalChain": "error"
|
|
},
|
|
"nursery": {
|
|
"noDuplicateJsonKeys": "error",
|
|
"noNodejsModules": "error",
|
|
"useExportType": "error",
|
|
"useImportType": "error",
|
|
"useShorthandFunctionType": "error"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtmlWithChildren": "error"
|
|
},
|
|
"suspicious": {
|
|
"noDebugger": "error",
|
|
"noDoubleEquals": "error",
|
|
"noDuplicateJsxProps": "error",
|
|
"noDuplicateObjectKeys": "error",
|
|
"noDuplicateParameters": "error",
|
|
"noDuplicateCase": "error",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noRedeclare": "error",
|
|
"noSparseArray": "error",
|
|
"noUnsafeDeclarationMerging": "error",
|
|
"noUnsafeNegation": "error",
|
|
"useIsArray": "error"
|
|
},
|
|
"style": {
|
|
"noCommaOperator": "error",
|
|
"noShoutyConstants": "error",
|
|
"noParameterProperties": "error",
|
|
"noVar": "error",
|
|
"useConst": "error"
|
|
}
|
|
}
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"ignore": [
|
|
"**/*/trace.json",
|
|
"static/app/data/world.json",
|
|
"**/*.sourcemap.js",
|
|
"**/*.min.js",
|
|
"fixtures"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"formatWithErrors": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineEnding": "lf",
|
|
"ignore": ["tests/**/*.json"]
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"enabled": true,
|
|
"lineWidth": 90,
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"trailingComma": "es5",
|
|
"semicolons": "always",
|
|
"arrowParentheses": "asNeeded",
|
|
"bracketSpacing": false,
|
|
"bracketSameLine": false
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"enabled": true
|
|
},
|
|
"parser": {
|
|
"allowComments": true,
|
|
"allowTrailingCommas": true
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"include": [
|
|
"api-docs/*.ts",
|
|
"build-utils/*.ts",
|
|
"config/webpack.chartcuterie.config.ts",
|
|
"scripts",
|
|
"tests/js/sentry-test/loadFixtures.ts",
|
|
"tests/js/jest-pegjs-transform.js",
|
|
"tests/js/setup.ts",
|
|
"tests/js/test-balancer/index.js",
|
|
"*.config.ts"
|
|
],
|
|
"linter": {
|
|
"rules": {
|
|
"nursery": {
|
|
"noNodejsModules": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"include": ["src/sentry/templates/sentry/error-page-embed.js"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noVar": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|