core/biome.json

110 lines
3.0 KiB
JSON
Raw Normal View History

2025-05-16 06:23:48 +00:00
{
2025-06-30 18:25:26 +00:00
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
2025-05-16 06:23:48 +00:00
"files": {
2025-06-30 18:25:26 +00:00
"includes": [
"**/*.tsx",
"**/*.ts",
"**/*.js",
"**/*.json",
"!dist",
"!node_modules",
"!**/.husky",
"!**/docs",
"!**/gen",
"!**/*.gen.ts",
"!**/*.d.ts"
]
2025-05-16 06:23:48 +00:00
},
"vcs": {
"enabled": true,
"defaultBranch": "dev",
"useIgnoreFile": true,
"clientKind": "git"
},
2025-06-30 18:25:26 +00:00
"assist": { "actions": { "source": { "organizeImports": "on" } } },
2025-05-16 06:23:48 +00:00
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 108,
2025-06-30 18:25:26 +00:00
"includes": ["**", "!src/graphql/schema", "!gen", "!panel/graphql/generated"]
2025-05-16 06:23:48 +00:00
},
"javascript": {
"formatter": {
"enabled": true,
"semicolons": "asNeeded",
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"arrowParentheses": "always",
"trailingCommas": "none"
}
},
"linter": {
"enabled": true,
2025-06-30 18:25:26 +00:00
"includes": ["**", "!**/*.scss", "!**/*.md", "!**/.DS_Store", "!**/*.svg", "!**/*.d.ts"],
2025-05-16 06:23:48 +00:00
"rules": {
"complexity": {
"noForEach": "off",
2025-06-30 18:25:26 +00:00
"noUselessFragments": "off",
2025-05-16 06:23:48 +00:00
"useOptionalChain": "warn",
"useLiteralKeys": "off",
"noExcessiveCognitiveComplexity": "off",
"useSimplifiedLogicExpression": "off"
},
"correctness": {
"useHookAtTopLevel": "off",
"useImportExtensions": "off",
2025-06-30 18:25:26 +00:00
"noUndeclaredDependencies": "off"
2025-05-16 06:23:48 +00:00
},
"a11y": {
"useHeadingContent": "off",
"useKeyWithClickEvents": "off",
"useKeyWithMouseEvents": "off",
"useAnchorContent": "off",
"useValidAnchor": "off",
"useMediaCaption": "off",
"useAltText": "off",
"useButtonType": "off",
"noRedundantAlt": "off",
2025-06-30 18:25:26 +00:00
"noStaticElementInteractions": "off",
2025-05-16 06:23:48 +00:00
"noSvgWithoutTitle": "off",
"noLabelWithoutControl": "off"
},
"performance": {
2025-06-30 18:25:26 +00:00
"noBarrelFile": "off",
"noNamespaceImport": "warn"
2025-05-16 06:23:48 +00:00
},
"style": {
"noNonNullAssertion": "off",
"noUselessElse": "off",
"useBlockStatements": "off",
"noImplicitBoolean": "off",
"useNamingConvention": "off",
"useImportType": "off",
"noDefaultExport": "off",
"useFilenamingConvention": "off",
"useExplicitLengthCheck": "off",
2025-06-30 18:25:26 +00:00
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error"
2025-05-16 06:23:48 +00:00
},
"suspicious": {
"noConsole": "off",
2025-06-30 18:25:26 +00:00
"noAssignInExpressions": "off",
"useAwait": "off",
"noEmptyBlockStatements": "off"
},
"nursery": {
"noFloatingPromises": "warn",
"noImportCycles": "warn"
2025-05-16 06:23:48 +00:00
}
}
}
}