diff --git a/Configuration/ESBuild.ts b/Configuration/ESBuild.ts index 4123b09..ed22a94 100644 --- a/Configuration/ESBuild.ts +++ b/Configuration/ESBuild.ts @@ -34,7 +34,7 @@ export default { resolveFrom: "out", assets: [ { - from: "./Source/Notation/biome.json", + from: "./Source/Notation/Biome.json", to: "./Notation/", }, ], diff --git a/README.md b/README.md index 6259beb..8cff30a 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,13 @@ export default { > **Note** > -> If you provide a `biome.json` config file the utility will pick it up +> If you provide a `Biome.json` config file the utility will pick it up > automatically. > **Warning** > > The configuration options from the `astro.config.ts` file will override the -> `biome.json` config. +> `Biome.json` config. #### You can add multiple paths to validate / format by specifying an array as the `Path` variable. diff --git a/Source/Notation/Biome.json b/Source/Notation/Biome.json new file mode 100644 index 0000000..4dbb4ba --- /dev/null +++ b/Source/Notation/Biome.json @@ -0,0 +1,57 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.2.2/schema.json", + "organizeImports": { + "enabled": true + }, + "formatter": { + "enabled": true, + "formatWithErrors": true, + "indentWidth": 4, + "indentStyle": "tab", + "lineWidth": 80 + }, + "javascript": { + "formatter": { + "enabled": true, + "arrowParentheses": "always", + "indentStyle": "tab", + "indentWidth": 4, + "jsxQuoteStyle": "double", + "lineWidth": 80, + "quoteProperties": "asNeeded", + "quoteStyle": "double", + "semicolons": "always", + "trailingComma": "all" + } + }, + "linter": { + "enabled": true, + "rules": { + "a11y": { + "all": true + }, + "all": true, + "complexity": { + "all": true + }, + "correctness": { + "all": true + }, + "nursery": { + "all": true + }, + "performance": { + "all": true + }, + "security": { + "all": true + }, + "style": { + "all": true + }, + "suspicious": { + "all": true + } + } + } +} diff --git a/Source/Notation/Rome.json b/Source/Notation/Rome.json deleted file mode 100644 index c304672..0000000 --- a/Source/Notation/Rome.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - // @TODO: Use proper schema - // "$schema": "", - "files": { - "maxSize": 5000000 - }, - "formatter": { - "enabled": true, - "formatWithErrors": false, - "indentSize": 4, - "indentStyle": "tab", - "lineWidth": 80 - }, - "javascript": { - "formatter": { - "quoteProperties": "asNeeded", - "quoteStyle": "double", - "trailingComma": "all" - }, - "globals": [] - }, - "linter": { - "enabled": true, - "rules": { - "a11y": { - "noAutofocus": "error", - "noPositiveTabindex": "error", - "recommended": true, - "useAltText": "error", - "useAnchorContent": "error", - "useButtonType": "error", - "useKeyWithClickEvents": "error", - "useKeyWithMouseEvents": "error", - "useValidAnchor": "error" - }, - "complexity": { - "noExtraBooleanCast": "error", - "recommended": true, - "useSimplifiedLogicExpression": "error" - }, - "correctness": { - "noChildrenProp": "error", - "noEmptyPattern": "error", - "noNewSymbol": "error", - "noRenderReturnValue": "error", - "noUndeclaredVariables": "error", - "noUnnecessaryContinue": "error", - "noUnreachable": "error", - "noUnusedVariables": "error", - "noVoidElementsWithChildren": "error", - "recommended": true - }, - "nursery": { - "noBannedTypes": "error", - "recommended": true, - "useCamelCase": "error", - "useExhaustiveDependencies": "error" - }, - "recommended": true, - "security": { - "noDangerouslySetInnerHtml": "error", - "noDangerouslySetInnerHtmlWithChildren": "error", - "recommended": true - }, - "style": { - "noImplicitBoolean": "error", - "noNegationElse": "error", - "noShoutyConstants": "error", - "noUnusedTemplateLiteral": "error", - "recommended": true, - "useBlockStatements": "error", - "useFragmentSyntax": "error", - "useSelfClosingElements": "error", - "useShorthandArrayType": "error", - "useSingleVarDeclarator": "error", - "useTemplate": "error" - } - } - } -} diff --git a/Source/Variable/Biome.ts b/Source/Variable/Biome.ts index 50dd866..f9f1a6f 100644 --- a/Source/Variable/Biome.ts +++ b/Source/Variable/Biome.ts @@ -3,7 +3,7 @@ * */ export default JSON.parse( - await (await import("../Function/Config.js")).default("biome.json") + await (await import("../Function/Config.js")).default("Biome.json") ) satisfies Type; import type Type from "../Interface/Biome.js";