implementado biome para ia
This commit is contained in:
parent
0a6ce2e323
commit
b132aa8005
5 changed files with 441 additions and 78 deletions
|
|
@ -6,12 +6,20 @@
|
|||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
|
||||
"correctness": {
|
||||
"noUnusedVariables": "error",
|
||||
"noUnusedImports": "error",
|
||||
"noEmptyPattern": "off",
|
||||
"useExhaustiveDependencies": "off"
|
||||
"useExhaustiveDependencies": "off",
|
||||
"noVoidTypeReturn": "error",
|
||||
"noVueDataObjectDeclaration": "error",
|
||||
"noVueDuplicateKeys": "error",
|
||||
"noVueReservedKeys": "error",
|
||||
"noVueReservedProps": "error",
|
||||
"noVueSetupPropsReactivityLoss": "warn"
|
||||
},
|
||||
|
||||
"style": {
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
|
|
@ -21,44 +29,127 @@
|
|||
"useSingleVarDeclarator": "error",
|
||||
"noUnusedTemplateLiteral": "error",
|
||||
"useNumberNamespace": "error",
|
||||
"noInferrableTypes": "error"
|
||||
"noInferrableTypes": "error",
|
||||
"useArrayLiterals": "error",
|
||||
"useConsistentArrayType": {
|
||||
"level": "error",
|
||||
"options": { "syntax": "shorthand" }
|
||||
},
|
||||
"useShorthandAssign": "error",
|
||||
"noNonNullAssertion": "warn"
|
||||
},
|
||||
|
||||
"suspicious": {
|
||||
"noDebugger": "off",
|
||||
"noDoubleEquals": "off",
|
||||
"noExplicitAny": "off",
|
||||
"noApproximativeNumericConstant": "off",
|
||||
"noAsyncPromiseExecutor": "off"
|
||||
"noAsyncPromiseExecutor": "off",
|
||||
"noEmptyBlockStatements": "warn",
|
||||
"noConsole": "off",
|
||||
"noArrayIndexKey": "warn"
|
||||
},
|
||||
|
||||
"complexity": {
|
||||
"noUselessConstructor": "off",
|
||||
"noBannedTypes": "off",
|
||||
"useLiteralKeys": "off",
|
||||
"useArrowFunction": "warn",
|
||||
"useDateNow": "off",
|
||||
"noUselessFragments": "off"
|
||||
"noUselessFragments": "off",
|
||||
"noExcessiveCognitiveComplexity": {
|
||||
"level": "warn",
|
||||
"options": { "maxAllowedComplexity": 20 }
|
||||
}
|
||||
},
|
||||
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "off"
|
||||
"noAccumulatingSpread": "off",
|
||||
"noDelete": "warn"
|
||||
},
|
||||
|
||||
"a11y": {
|
||||
"useSemanticElements": "off"
|
||||
"useSemanticElements": "off",
|
||||
"useAltText": "warn",
|
||||
"useButtonType": "warn"
|
||||
},
|
||||
|
||||
"security": {
|
||||
"noDangerouslySetInnerHtml": "warn"
|
||||
},
|
||||
|
||||
"nursery": {
|
||||
"noVueArrowFuncInWatch": "warn",
|
||||
"noVueVIfWithVFor": "error",
|
||||
"useVueConsistentDefinePropsDeclaration": "warn",
|
||||
"useVueConsistentVBindStyle": "warn",
|
||||
"useVueConsistentVOnStyle": "warn",
|
||||
"useVueDefineMacrosOrder": "warn",
|
||||
"useVueVForKey": "error",
|
||||
"useVueValidTemplateRoot": "error",
|
||||
"useVueValidVBind": "error",
|
||||
"useVueValidVIf": "error",
|
||||
"useVueValidVElse": "error",
|
||||
"useVueValidVElseIf": "error",
|
||||
"useVueValidVOn": "warn",
|
||||
"useVueValidVHtml": "warn"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2
|
||||
"indentWidth": 2,
|
||||
"lineWidth": 100,
|
||||
"lineEnding": "lf"
|
||||
},
|
||||
|
||||
"javascript": {
|
||||
"globals": [
|
||||
"defineProps",
|
||||
"defineEmits",
|
||||
"defineExpose",
|
||||
"withDefaults",
|
||||
"defineModel",
|
||||
"defineOptions",
|
||||
"defineSlots"
|
||||
],
|
||||
"parser": {
|
||||
"unsafeParameterDecoratorsEnabled": true
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"semicolons": "asNeeded",
|
||||
"arrowParentheses": "always",
|
||||
"bracketSameLine": false,
|
||||
"trailingCommas": "all",
|
||||
"attributePosition": "multiline"
|
||||
"attributePosition": "multiline",
|
||||
"quoteStyle": "double",
|
||||
"jsxQuoteStyle": "double",
|
||||
"bracketSpacing": true
|
||||
}
|
||||
},
|
||||
|
||||
"css": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2,
|
||||
"lineWidth": 100,
|
||||
"quoteStyle": "double"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
|
||||
"html": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2,
|
||||
"lineWidth": 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue