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 #767

Draft
wants to merge 5 commits into
base: dark-mode
Choose a base branch
from
Draft

Biome #767

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/sanity-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
path: |
${{matrix.apps}}/.eslintcache
${{matrix.apps}}/.tsbuildinfo
key: ${{ runner.os }}-${{ matrix.apps }}-${{ hashFiles(format('{0}/tsconfig.json', matrix.apps), format('{0}/.eslintrc.cjs', matrix.apps), format('{0}/eslint.config.js', matrix.apps)) }}
key: ${{ runner.os }}-${{ matrix.apps }}-${{ hashFiles(format('{0}/tsconfig.json', matrix.apps)) }}

- name: Typecheck ${{ matrix.apps }}
shell: bash
Expand All @@ -57,4 +57,4 @@ jobs:
path: |
${{matrix.apps}}/.eslintcache
${{matrix.apps}}/.tsbuildinfo
key: ${{ runner.os }}-${{ matrix.apps }}-${{ hashFiles(format('{0}/tsconfig.json', matrix.apps), format('{0}/.eslintrc.cjs', matrix.apps), format('{0}/eslint.config.js', matrix.apps)) }}
key: ${{ runner.os }}-${{ matrix.apps }}-${{ hashFiles(format('{0}/tsconfig.json', matrix.apps)) }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ dist
build
.DS_Store
.idea
.eslintcache
.tsbuildinfo
50 changes: 39 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
],
"editor.formatOnSave": true,
"eslint.format.enable": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.linkedEditing": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"quickfix.biome": "always",
"source.fixAll.biome": "always",
"source.organizeImports.biome": "always",
"source.addMissingImports.ts": "explicit"
},
"prettier.requireConfig": true
}
"editor.acceptSuggestionOnCommitCharacter": false,
"typescript.validate.enable": true,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "non-relative",
"workbench.editor.closeOnFileDelete": true,
"npm-intellisense.importQuotes": "'",
"npm-intellisense.importES6": true,
"npm-intellisense.showBuildInLibs": true,
"liveshare.autoShareServers": true,
"liveshare.openSharedServers": false,
"liveshare.languages.allowGuestCommandControl": true,
"liveshare.allowGuestDebugControl": true,
"liveshare.allowGuestTaskControl": true,
"liveshare.notebooks.allowGuestExecuteCells": true,
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
67 changes: 67 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noDoubleEquals": {
"level": "error",
"fix": "unsafe"
},
"noGlobalIsFinite": {
"level": "error",
"fix": "unsafe"
}
},
"complexity": {
"useArrowFunction": {
"level": "error",
"fix": "safe"
},
"useSimplifiedLogicExpression": {
"level": "warn"
}
},
"correctness": {
"noUnusedImports": {
"level": "error"
}
},
"style": {
"noUnusedTemplateLiteral": {
"level": "warn",
"fix": "unsafe"
},
"noUselessElse": {
"level": "warn",
"fix": "safe"
},
"useTemplate": {
"level": "warn",
"fix": "safe"
}
}
}
},
"formatter": {
"lineWidth": 120,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"arrowParentheses": "always",
"bracketSameLine": false
},
"linter": {
"enabled": true
}
},
"files": {
"ignore": ["dist/**", "node_modules/**"]
}
}
Loading
Loading