Skip to content

Commit

Permalink
chore: merge main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 10, 2024
2 parents 39fdd57 + a65875c commit 399161c
Show file tree
Hide file tree
Showing 183 changed files with 3,541 additions and 5,324 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

59 changes: 0 additions & 59 deletions .eslintrc.json

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Code check

on:
pull_request:
branches: ["*"]

jobs:
quality-assurance:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci --reporter=github .
type:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run TypeScript compiler
run: npm run type-check
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run type-check
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

88 changes: 88 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 85,
"attributePosition": "auto"
},
"files": {
"include": ["src", "cypress"],
"ignore": ["node_modules", ".next", "public", ".out"]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"a11y": { "useValidAnchor": "warn" },
"complexity": {
"noBannedTypes": "error",
"noUselessConstructor": "error",
"noUselessTypeConstraint": "error",
"useLiteralKeys": "error"
},
"correctness": {
"noInvalidUseBeforeDeclaration": "off",
"noPrecisionLoss": "error",
"noUnusedVariables": "off",
"useArrayLiterals": "off",
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noInferrableTypes": "error",
"noNamespace": "error",
"noNonNullAssertion": "warn",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useDefaultParameterLast": "error",
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "error",
"noEmptyBlockStatements": "warn",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"useAwait": "off",
"useNamespaceKeyword": "error",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off",
"useValidTypeof": "off"
},
"nursery": {
"useSortedClasses": "info"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
}
}
}
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs"
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from "cypress"
import fs from "fs"

export default defineConfig({
e2e: {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Cypress.Commands.add("clearIndexedDB", () => {
indexedDB.deleteDatabase("guild.xyz")
})

// eslint-disable-next-line @typescript-eslint/no-namespace
// biome-ignore lint/style/noNamespace: <explanation>
declare namespace Cypress {
interface Chainable {
getByDataTest(selector: string): Chainable<JQuery<HTMLElement>>
Expand Down
6 changes: 6 additions & 0 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const config = {
"*.{mjs,js,jsx,ts,tsx}": ["biome check --write"],
"*.json": ["biome format --write"],
}

export default config
Loading

0 comments on commit 399161c

Please sign in to comment.