style(biome): replace eslint by biome

This commit is contained in:
Sylux 2024-05-08 16:44:04 +02:00
parent b6692e42b2
commit c213fa184d
5 changed files with 216 additions and 903 deletions

View File

@ -1,17 +0,0 @@
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"overrides": [
{
"files": ["src/**/*.ts"],
"extends": "eslint:recommended"
}
],
"rules": {}
}

40
biome.json Normal file
View File

@ -0,0 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"maxSize": 2097152
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "error"
},
"suspicious": {
"noExplicitAny": "off"
},
"style": {
"useImportType": "off",
"useBlockStatements": "error"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"json": {
"formatter": {
"enabled": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
}
}

1022
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,10 +13,10 @@
"test:watch": "vitest watch --coverage"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@vitest/coverage-istanbul": "^1.4.0",
"axios": "^1.6.2",
"axios-cache-interceptor": "^1.3.2",
"eslint": "^8.25.0",
"jsdom": "^24.0.0",
"json-beautify": "^1.1.1",
"phaser3spectorjs": "^0.0.8",

View File

@ -1,20 +1,20 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"esModuleInterop": true,
"strictNullChecks": false,
"sourceMap": false,
"strict": false,
"rootDir": "./src",
"baseUrl": "./src",
"paths": {
"#app/*": ["*.ts"],
"#app": ["."]
},
"outDir": "./build",
"noEmit": true
}
}
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"esModuleInterop": true,
"strictNullChecks": false,
"sourceMap": false,
"strict": false,
"rootDir": "./src",
"baseUrl": "./src",
"paths": {
"#app/*": ["*.ts"],
"#app": ["."]
},
"outDir": "./build",
"noEmit": true
}
}