| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- {
- "$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
- "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
- "files": { "ignoreUnknown": false, "maxSize": 2097152 },
- "formatter": {
- "enabled": true,
- "formatWithErrors": false,
- "indentStyle": "space",
- "indentWidth": 4,
- "lineEnding": "lf",
- "lineWidth": 110,
- "attributePosition": "auto",
- "bracketSameLine": true,
- "bracketSpacing": true,
- "useEditorconfig": true,
- "includes": [
- "**",
- "!**/generated-types.ts",
- "!**/lazy-extensions.module.ts",
- "!**/shared-extensions.module.ts",
- "!**/generated-graphql-shop-errors.ts",
- "!**/generated-graphql-admin-errors.ts",
- "!**/tailwindcss-animate.css",
- "!**/*.graphql"
- ]
- },
- "linter": {
- "enabled": true,
- "rules": { "recommended": false, "style": { "useBlockStatements": "off" } },
- "includes": [
- "**",
- "!**/node_modules/**",
- "!**/dist/**",
- "!**/generated*",
- "!**/*.js",
- "!**/*.d.ts",
- "!/packages/ui-devkit/scaffold/**/*",
- "!/packages/dev-server/load-testing/**/*",
- "!/docs/layouts/**/*"
- ]
- },
- "javascript": {
- "parser": { "unsafeParameterDecoratorsEnabled": true },
- "formatter": {
- "jsxQuoteStyle": "double",
- "quoteProperties": "asNeeded",
- "trailingCommas": "all",
- "semicolons": "always",
- "arrowParentheses": "asNeeded",
- "bracketSameLine": true,
- "quoteStyle": "single",
- "attributePosition": "auto",
- "bracketSpacing": true
- }
- },
- "html": { "formatter": { "indentScriptAndStyle": false, "selfCloseVoidElements": "always" } },
- "css": { "parser": { "tailwindDirectives": true } },
- "overrides": [
- { "includes": ["**/*.ts", "**/*.tsx"], "javascript": { "globals": [] } },
- {
- "includes": ["**/*.ts", "**/*.tsx"],
- "linter": {
- "rules": {
- "complexity": { "noArguments": "error" },
- "correctness": {
- "noConstAssign": "off",
- "noGlobalObjectCalls": "off",
- "noInvalidBuiltinInstantiation": "off",
- "noInvalidConstructorSuper": "off",
- "noSetterReturn": "off",
- "noUndeclaredVariables": "off",
- "noUnreachable": "off",
- "noUnreachableSuper": "off"
- },
- "style": { "useConst": "error" },
- "suspicious": {
- "noClassAssign": "off",
- "noDuplicateClassMembers": "off",
- "noDuplicateObjectKeys": "off",
- "noDuplicateParameters": "off",
- "noFunctionAssign": "off",
- "noImportAssign": "off",
- "noRedeclare": "off",
- "noUnsafeNegation": "off",
- "noVar": "error",
- "noWith": "off",
- "useGetterReturn": "off"
- }
- }
- }
- },
- {
- "includes": ["**/*.ts", "**/*.tsx"],
- "linter": {
- "rules": {
- "complexity": { "noUselessTypeConstraint": "error" },
- "correctness": { "noUnusedVariables": "error" },
- "style": {
- "noCommonJs": "error",
- "noNamespace": "error",
- "useArrayLiterals": "error",
- "useAsConstAssertion": "error"
- },
- "suspicious": {
- "noExplicitAny": "error",
- "noExtraNonNullAssertion": "error",
- "noMisleadingInstantiator": "error",
- "noNonNullAssertedOptionalChain": "error",
- "noUnsafeDeclarationMerging": "error",
- "useNamespaceKeyword": "error"
- }
- }
- }
- },
- { "includes": ["**/*.ts", "**/*.tsx"], "javascript": { "globals": [] } },
- {
- "includes": ["**/*.ts", "**/*.tsx"],
- "linter": {
- "rules": {
- "complexity": { "noArguments": "error" },
- "correctness": {
- "noConstAssign": "off",
- "noGlobalObjectCalls": "off",
- "noInvalidBuiltinInstantiation": "off",
- "noInvalidConstructorSuper": "off",
- "noSetterReturn": "off",
- "noUndeclaredVariables": "off",
- "noUnreachable": "off",
- "noUnreachableSuper": "off"
- },
- "style": { "useConst": "error" },
- "suspicious": {
- "noClassAssign": "off",
- "noDuplicateClassMembers": "off",
- "noDuplicateObjectKeys": "off",
- "noDuplicateParameters": "off",
- "noFunctionAssign": "off",
- "noImportAssign": "off",
- "noRedeclare": "off",
- "noUnsafeNegation": "off",
- "noVar": "error",
- "noWith": "off",
- "useGetterReturn": "off"
- }
- }
- }
- },
- {
- "includes": ["**/*.ts", "**/*.tsx"],
- "linter": {
- "rules": {
- "complexity": { "noUselessTypeConstraint": "error" },
- "correctness": { "noUnusedVariables": "error" },
- "style": {
- "noCommonJs": "error",
- "noNamespace": "error",
- "useArrayLiterals": "error",
- "useAsConstAssertion": "error"
- },
- "suspicious": {
- "noExplicitAny": "error",
- "noExtraNonNullAssertion": "error",
- "noMisleadingInstantiator": "error",
- "noNonNullAssertedOptionalChain": "error",
- "noUnsafeDeclarationMerging": "error",
- "useAwait": "error",
- "useNamespaceKeyword": "error"
- }
- }
- }
- },
- {
- "includes": ["**/*.ts", "**/*.tsx"],
- "javascript": { "globals": ["exports"] },
- "linter": {
- "rules": {
- "complexity": {
- "noUselessTypeConstraint": "error",
- "noUselessUndefinedInitialization": "error",
- "useLiteralKeys": "error"
- },
- "correctness": {
- "noInvalidConstructorSuper": "error",
- "noInvalidUseBeforeDeclaration": "off",
- "noPrecisionLoss": "error",
- "noUnsafeFinally": "error",
- "noUnusedLabels": "error",
- "noUnusedVariables": "off",
- "useIsNan": "error",
- "useParseIntRadix": "error",
- "useValidTypeof": "off"
- },
- "security": { "noGlobalEval": "error" },
- "style": {
- "noInferrableTypes": "error",
- "noNamespace": "error",
- "noNonNullAssertion": "error",
- "useArrayLiterals": "error",
- "useAsConstAssertion": "error",
- "useConsistentArrayType": { "level": "error", "options": { "syntax": "shorthand" } },
- "useConsistentBuiltinInstantiation": "error",
- "useConsistentMemberAccessibility": {
- "level": "off",
- "options": { "accessibility": "explicit" }
- },
- "useConsistentTypeDefinitions": "off",
- "useConst": "error",
- "useForOf": "error",
- "useShorthandFunctionType": "error",
- "useSingleVarDeclarator": "error",
- "useUnifiedTypeSignatures": "error"
- },
- "suspicious": {
- "noBitwiseOperators": "error",
- "noConsole": "error",
- "noDebugger": "error",
- "noDoubleEquals": "error",
- "noEmptyBlockStatements": "error",
- "noExplicitAny": "off",
- "noExtraNonNullAssertion": "error",
- "noFallthroughSwitchClause": "error",
- "noMisleadingInstantiator": "error",
- "noNonNullAssertedOptionalChain": "error",
- "noVar": "error",
- "useAdjacentOverloadSignatures": "error",
- "useAwait": "warn",
- "useGuardForIn": "error",
- "useNamespaceKeyword": "error"
- }
- }
- }
- },
- { "includes": ["packages/ui-devkit/src/client/**/*"], "javascript": { "globals": [] } },
- { "includes": ["packages/ui-devkit/src/compiler/**/*"], "javascript": { "globals": [] } }
- ],
- "assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
- }
|