Will flag new explicit 'any' annotations going forward. Existing 672 usages remain (intentional for now).
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"includes": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"],
|
|
"ignoreUnknown": false
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 120,
|
|
"lineEnding": "lf"
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noExplicitAny": "warn",
|
|
"noArrayIndexKey": "warn",
|
|
"noDocumentCookie": "error",
|
|
"noAssignInExpressions": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "warn"
|
|
},
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "warn",
|
|
"useHookAtTopLevel": "error",
|
|
"noInvalidUseBeforeDeclaration": "error"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "error"
|
|
},
|
|
"complexity": {
|
|
"useOptionalChain": "warn"
|
|
},
|
|
"a11y": {
|
|
"useButtonType": "warn",
|
|
"useKeyWithClickEvents": "warn",
|
|
"noLabelWithoutControl": "warn",
|
|
"noStaticElementInteractions": "warn",
|
|
"useSemanticElements": "warn",
|
|
"noSvgWithoutTitle": "warn",
|
|
"useValidAnchor": "warn",
|
|
"useFocusableInteractive": "warn",
|
|
"noAmbiguousAnchorText": "warn",
|
|
"useAriaPropsForRole": "warn"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"semicolons": "asNeeded",
|
|
"trailingCommas": "all",
|
|
"arrowParentheses": "always",
|
|
"jsxQuoteStyle": "double"
|
|
}
|
|
},
|
|
"assist": {
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
}
|
|
}
|