157 lines
4 KiB
JSON
157 lines
4 KiB
JSON
|
{
|
||
|
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
|
||
|
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
|
||
|
"files": { "ignoreUnknown": false, "ignore": [] },
|
||
|
"formatter": {
|
||
|
"enabled": true,
|
||
|
"useEditorconfig": true,
|
||
|
"formatWithErrors": false,
|
||
|
"indentStyle": "space",
|
||
|
"indentWidth": 2,
|
||
|
"lineEnding": "lf",
|
||
|
"lineWidth": 80,
|
||
|
"attributePosition": "auto",
|
||
|
"bracketSpacing": true,
|
||
|
"ignore": [
|
||
|
"./blueprints/*/files/",
|
||
|
"./dist/",
|
||
|
"./coverage/",
|
||
|
"**/.*/",
|
||
|
"./.node_modules.ember-try/"
|
||
|
]
|
||
|
},
|
||
|
"organizeImports": { "enabled": true },
|
||
|
"linter": {
|
||
|
"enabled": true,
|
||
|
"rules": {
|
||
|
"recommended": false,
|
||
|
"complexity": {
|
||
|
"noExtraBooleanCast": "error",
|
||
|
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
||
|
"noUselessCatch": "error",
|
||
|
"noWith": "error",
|
||
|
"useArrowFunction": "off"
|
||
|
},
|
||
|
"correctness": {
|
||
|
"noConstAssign": "error",
|
||
|
"noConstantCondition": "error",
|
||
|
"noEmptyCharacterClassInRegex": "error",
|
||
|
"noEmptyPattern": "error",
|
||
|
"noGlobalObjectCalls": "error",
|
||
|
"noInnerDeclarations": "error",
|
||
|
"noInvalidConstructorSuper": "error",
|
||
|
"noNewSymbol": "error",
|
||
|
"noNonoctalDecimalEscape": "error",
|
||
|
"noPrecisionLoss": "error",
|
||
|
"noSelfAssign": "error",
|
||
|
"noSetterReturn": "error",
|
||
|
"noSwitchDeclarations": "error",
|
||
|
"noUndeclaredVariables": "error",
|
||
|
"noUnreachable": "error",
|
||
|
"noUnreachableSuper": "error",
|
||
|
"noUnsafeFinally": "error",
|
||
|
"noUnsafeOptionalChaining": "error",
|
||
|
"noUnusedLabels": "error",
|
||
|
"noUnusedVariables": "error",
|
||
|
"useIsNan": "error",
|
||
|
"useValidForDirection": "error",
|
||
|
"useYield": "error"
|
||
|
},
|
||
|
"style": { "useBlockStatements": "off" },
|
||
|
"suspicious": {
|
||
|
"noAssignInExpressions": "error",
|
||
|
"noAsyncPromiseExecutor": "error",
|
||
|
"noCatchAssign": "error",
|
||
|
"noClassAssign": "error",
|
||
|
"noCompareNegZero": "error",
|
||
|
"noControlCharactersInRegex": "error",
|
||
|
"noDebugger": "error",
|
||
|
"noDuplicateCase": "error",
|
||
|
"noDuplicateClassMembers": "error",
|
||
|
"noDuplicateObjectKeys": "error",
|
||
|
"noDuplicateParameters": "error",
|
||
|
"noEmptyBlockStatements": "error",
|
||
|
"noFallthroughSwitchClause": "error",
|
||
|
"noFunctionAssign": "error",
|
||
|
"noGlobalAssign": "error",
|
||
|
"noImportAssign": "error",
|
||
|
"noMisleadingCharacterClass": "error",
|
||
|
"noPrototypeBuiltins": "error",
|
||
|
"noRedeclare": "error",
|
||
|
"noShadowRestrictedNames": "error",
|
||
|
"noSparseArray": "error",
|
||
|
"noUnsafeNegation": "error",
|
||
|
"useGetterReturn": "error",
|
||
|
"useValidTypeof": "error"
|
||
|
}
|
||
|
},
|
||
|
"ignore": [
|
||
|
"./blueprints/*/files/",
|
||
|
"./declarations/",
|
||
|
"./dist/",
|
||
|
"./coverage/",
|
||
|
"**/.*/",
|
||
|
"./.node_modules.ember-try/"
|
||
|
]
|
||
|
},
|
||
|
"javascript": {
|
||
|
"formatter": {
|
||
|
"jsxQuoteStyle": "double",
|
||
|
"quoteProperties": "asNeeded",
|
||
|
"trailingCommas": "all",
|
||
|
"semicolons": "asNeeded",
|
||
|
"arrowParentheses": "always",
|
||
|
"bracketSameLine": false,
|
||
|
"quoteStyle": "single",
|
||
|
"attributePosition": "auto",
|
||
|
"bracketSpacing": true
|
||
|
}
|
||
|
},
|
||
|
"overrides": [
|
||
|
{ "include": ["**/*.ts"] },
|
||
|
{
|
||
|
"include": [
|
||
|
"./.eslintrc.js",
|
||
|
"./.prettierrc.js",
|
||
|
"./.stylelintrc.js",
|
||
|
"./.template-lintrc.js",
|
||
|
"./ember-cli-build.js",
|
||
|
"./testem.js",
|
||
|
"./blueprints/*/index.js",
|
||
|
"./config/**/*.js",
|
||
|
"./lib/*/index.js",
|
||
|
"./server/**/*.js"
|
||
|
]
|
||
|
},
|
||
|
{ "include": ["tests/**/*-test.{js,ts}"] },
|
||
|
{
|
||
|
"include": ["**/*.gjs", "**/*.gts"],
|
||
|
"javascript": { "globals": ["__GLIMMER_TEMPLATE"] }
|
||
|
},
|
||
|
{ "include": ["**/*.ts"] },
|
||
|
{
|
||
|
"include": [
|
||
|
"./.eslintrc.js",
|
||
|
"./.prettierrc.js",
|
||
|
"./.stylelintrc.js",
|
||
|
"./.template-lintrc.js",
|
||
|
"./ember-cli-build.js",
|
||
|
"./testem.js",
|
||
|
"./blueprints/*/index.js",
|
||
|
"./config/**/*.js",
|
||
|
"./lib/*/index.js",
|
||
|
"./server/**/*.js"
|
||
|
]
|
||
|
},
|
||
|
{ "include": ["tests/**/*-test.{js,ts}"] },
|
||
|
{
|
||
|
"include": ["**/*.gjs", "**/*.gts"],
|
||
|
"javascript": { "globals": ["__GLIMMER_TEMPLATE"] }
|
||
|
},
|
||
|
{
|
||
|
"include": ["*.{js,ts}"],
|
||
|
"javascript": { "formatter": { "quoteStyle": "single" } }
|
||
|
}
|
||
|
]
|
||
|
}
|