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": { "linter": {
"enabled": true, "enabled": true,
"rules": { "rules": {
@ -11,24 +11,21 @@
"noRedeclare": "off", "noRedeclare": "off",
"noEmptyInterface": "off", "noEmptyInterface": "off",
"noConfusingVoidType": "off", "noConfusingVoidType": "off",
"noImplicitAnyLet": "off" "noImplicitAnyLet": "off",
"noEmptyBlockStatements": "off"
}, },
"style": { "style": {
"noNonNullAssertion": "off", "noNonNullAssertion": "off",
"noParameterAssign": "off" "noParameterAssign": "off",
"useExportType": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error"
}, },
"correctness": { "correctness": {
"noUnusedVariables": "off" "noUnusedVariables": "off"
}, },
"nursery": {
"useExportType": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error",
"noUselessLoneBlockStatements": "warn",
"noUselessTernary": "error",
"noEmptyBlockStatements": "off"
},
"complexity": { "complexity": {
"noUselessLoneBlockStatements": "warn",
"noBannedTypes": "off", "noBannedTypes": "off",
"noForEach": "off", "noForEach": "off",
"noUselessConstructor": "off", "noUselessConstructor": "off",

View File

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