chore: update biome

This commit is contained in:
Marcos Susaña 2024-03-11 14:32:41 -04:00
parent 36a0d9e990
commit db8958d2a1
2 changed files with 12 additions and 26 deletions

View File

@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json",
"linter": {
"enabled": true,
"rules": {
@ -11,24 +11,21 @@
"noRedeclare": "off",
"noEmptyInterface": "off",
"noConfusingVoidType": "off",
"noImplicitAnyLet": "off"
"noImplicitAnyLet": "off",
"noEmptyBlockStatements": "off"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "off"
"noParameterAssign": "off",
"useExportType": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error"
},
"correctness": {
"noUnusedVariables": "off"
},
"nursery": {
"useExportType": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error",
"noUselessLoneBlockStatements": "warn",
"noUselessTernary": "error",
"noEmptyBlockStatements": "off"
},
"complexity": {
"noUselessLoneBlockStatements": "warn",
"noBannedTypes": "off",
"noForEach": "off",
"noUselessConstructor": "off",

View File

@ -4,9 +4,7 @@
"main": "./lib/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**"
],
"files": ["lib/**"],
"scripts": {
"build": "tsc --outDir ./lib",
"prepublishOnly": "npm run build",
@ -26,13 +24,10 @@
"ws": "^8.16.0"
},
"lint-staged": {
"*.ts": [
"biome check --apply",
"biome format --write"
]
"*.ts": ["biome check --apply", "biome format --write"]
},
"devDependencies": {
"@biomejs/biome": "1.5.0",
"@biomejs/biome": "1.6.0",
"@types/node": "^20.10.7",
"@types/ws": "^8.5.10",
"husky": "^8.0.3",
@ -52,13 +47,7 @@
"bugs": {
"url": "https://github.com/tiramisulabs/seyfert"
},
"keywords": [
"api",
"discord",
"bots",
"typescript",
"botdev"
],
"keywords": ["api", "discord", "bots", "typescript", "botdev"],
"publishConfig": {
"access": "public"
},