Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biome #1075

Merged
merged 14 commits into from
Sep 5, 2024
Merged
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/radix-web-console-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: npm ci
- run: npm run lint
- run: biome ci .
- run: npm run lint-ts

validate-radixconfig:
Expand Down
62 changes: 62 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
".vscode/",
"src/style/hex-to-hsl.js",
"build/",
"dist/",
"src/store/*.ts"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"quoteStyle": "single",
"quoteProperties": "asNeeded",
"semicolons": "always",
"trailingCommas": "es5"
}
},
"linter": {
"rules": {
"security": {
"noDangerouslySetInnerHtml": "off"
},
"complexity": {
"noForEach": "off",
"noUselessFragments": "off",
"useArrowFunction": "off"
},
"style": {
"noUselessElse": "off",
"useNumberNamespace": "off",
"noNonNullAssertion": "off",
"noParameterAssign": "off"
},
"suspicious": {
"noArrayIndexKey": "off",
"noAssignInExpressions": "off",
"noDoubleEquals": "off"
},
"performance": {
"noAccumulatingSpread": "off"
},
"a11y": {
"noRedundantRoles": "off",
"useKeyWithClickEvents": "off"
}
}
}
}
Loading