-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: replace eslint and prettier with biome
Signed-off-by: rare-magma <[email protected]>
- Loading branch information
1 parent
75bc8d5
commit 16ccd2b
Showing
15 changed files
with
708 additions
and
6,624 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-prettier/recommended"] | ||
"extends": ["stylelint-config-standard"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"DavidAnson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"biomejs.biome", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
{ | ||
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"yaml", | ||
"github-actions-workflow" // for GitHub Actions workflow files | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"attributePosition": "auto" | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true, | ||
"defaultBranch": "main" | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false, | ||
"a11y": { | ||
"noAccessKey": "warn", | ||
"noAriaUnsupportedElements": "warn", | ||
"noBlankTarget": "warn", | ||
"noDistractingElements": "warn", | ||
"noHeaderScope": "warn", | ||
"noRedundantAlt": "warn", | ||
"noRedundantRoles": "warn", | ||
"useAltText": "warn", | ||
"useAnchorContent": "warn", | ||
"useAriaActivedescendantWithTabindex": "warn", | ||
"useAriaPropsForRole": "warn", | ||
"useHeadingContent": "warn", | ||
"useIframeTitle": "warn", | ||
"useValidAnchor": "warn", | ||
"useValidAriaProps": "warn", | ||
"useValidAriaRole": { | ||
"level": "warn", | ||
"options": { "allowInvalidRoles": [], "ignoreNonDom": true } | ||
}, | ||
"useValidAriaValues": "warn" | ||
}, | ||
"complexity": { | ||
"noMultipleSpacesInRegularExpressionLiterals": "warn", | ||
"noUselessConstructor": "warn", | ||
"noUselessLabel": "warn", | ||
"noUselessLoneBlockStatements": "warn", | ||
"noUselessRename": "warn", | ||
"noWith": "warn" | ||
}, | ||
"correctness": { | ||
"noConstAssign": "warn", | ||
"noEmptyCharacterClassInRegex": "warn", | ||
"noEmptyPattern": "warn", | ||
"noGlobalObjectCalls": "warn", | ||
"noInvalidUseBeforeDeclaration": "warn", | ||
"noNewSymbol": "warn", | ||
"noSelfAssign": "warn", | ||
"noUndeclaredVariables": "error", | ||
"noUnreachable": "warn", | ||
"noUnreachableSuper": "warn", | ||
"noUnusedLabels": "warn", | ||
"noUnusedVariables": "warn", | ||
"useArrayLiterals": "warn", | ||
"useExhaustiveDependencies": "warn", | ||
"useHookAtTopLevel": "error", | ||
"useIsNan": "warn", | ||
"useYield": "warn" | ||
}, | ||
"security": { | ||
"noDangerouslySetInnerHtmlWithChildren": "warn", | ||
"noGlobalEval": "warn" | ||
}, | ||
"style": { | ||
"noCommaOperator": "warn", | ||
"noRestrictedGlobals": { | ||
"level": "error", | ||
"options": { | ||
"deniedGlobals": [ | ||
"addEventListener", | ||
"blur", | ||
"close", | ||
"closed", | ||
"confirm", | ||
"defaultStatus", | ||
"defaultstatus", | ||
"event", | ||
"external", | ||
"find", | ||
"focus", | ||
"frameElement", | ||
"frames", | ||
"history", | ||
"innerHeight", | ||
"innerWidth", | ||
"length", | ||
"location", | ||
"locationbar", | ||
"menubar", | ||
"moveBy", | ||
"moveTo", | ||
"name", | ||
"onblur", | ||
"onerror", | ||
"onfocus", | ||
"onload", | ||
"onresize", | ||
"onunload", | ||
"open", | ||
"opener", | ||
"opera", | ||
"outerHeight", | ||
"outerWidth", | ||
"pageXOffset", | ||
"pageYOffset", | ||
"parent", | ||
"print", | ||
"removeEventListener", | ||
"resizeBy", | ||
"resizeTo", | ||
"screen", | ||
"screenLeft", | ||
"screenTop", | ||
"screenX", | ||
"screenY", | ||
"scroll", | ||
"scrollbars", | ||
"scrollBy", | ||
"scrollTo", | ||
"scrollX", | ||
"scrollY", | ||
"self", | ||
"status", | ||
"statusbar", | ||
"stop", | ||
"toolbar", | ||
"top" | ||
] | ||
} | ||
} | ||
}, | ||
"suspicious": { | ||
"noAssignInExpressions": "warn", | ||
"noCatchAssign": "warn", | ||
"noCommentText": "warn", | ||
"noConfusingLabels": "warn", | ||
"noControlCharactersInRegex": "warn", | ||
"noDoubleEquals": "warn", | ||
"noDuplicateCase": "warn", | ||
"noDuplicateClassMembers": "warn", | ||
"noDuplicateJsxProps": "warn", | ||
"noDuplicateObjectKeys": "warn", | ||
"noDuplicateParameters": "warn", | ||
"noFallthroughSwitchClause": "warn", | ||
"noFunctionAssign": "warn", | ||
"noGlobalAssign": "warn", | ||
"noLabelVar": "warn", | ||
"noRedeclare": "warn", | ||
"noSelfCompare": "warn", | ||
"noShadowRestrictedNames": "warn", | ||
"noUnsafeNegation": "warn", | ||
"useGetterReturn": "warn", | ||
"useValidTypeof": "warn" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "all", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "double", | ||
"attributePosition": "auto" | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["**/*.ts?(x)"], | ||
"linter": { | ||
"rules": { | ||
"complexity": { "noUselessConstructor": "warn" }, | ||
"correctness": { | ||
"noInvalidUseBeforeDeclaration": "warn", | ||
"noUndeclaredVariables": "off", | ||
"noUnusedVariables": "warn", | ||
"useArrayLiterals": "off" | ||
}, | ||
"suspicious": { | ||
"noDuplicateClassMembers": "off", | ||
"noRedeclare": "warn" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.