build: update all deps and migrate to biome

This commit is contained in:
Haoyu Xu
2025-10-04 02:11:24 +08:00
parent 43850d47ea
commit 5c9e9eba84
133 changed files with 834 additions and 1962 deletions

View File

@@ -1,3 +0,0 @@
dist
data
auto_update

View File

@@ -1,27 +0,0 @@
import { tsConfig } from '@aklive2d/eslint-config'
import tseslint from 'typescript-eslint'
import globals from 'globals'
/** @type {import('eslint').Config} */
export default tseslint.config(
...tsConfig,
{
ignores: ['dist', 'data'],
},
{
files: ['**/*.js', '**/*.ts'],
languageOptions: {
ecmaVersion: 2022,
globals: {
...globals.node,
},
},
rules: {
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
],
},
}
)

View File

@@ -1,9 +1,9 @@
import path from 'node:path'
import fs from 'node:fs'
import { Buffer } from 'node:buffer'
import fs from 'node:fs'
import path from 'node:path'
import { pipeline } from 'node:stream/promises'
import pThrottle from 'p-throttle'
import { file as fileLib } from '@aklive2d/libs'
import pThrottle from 'p-throttle'
export type UnzipDownloadItem = {
name: string

View File

@@ -5,12 +5,11 @@
"main": "index.ts",
"type": "module",
"dependencies": {
"@aklive2d/eslint-config": "workspace:*",
"@aklive2d/libs": "workspace:*",
"@aklive2d/prettier-config": "workspace:*",
"p-throttle": "^7.0.0"
"p-throttle": "^8.0.0"
},
"scripts": {
"lint": "eslint && prettier --check ."
"lint": "biome lint --write .",
"lint:fix": "biome check --write ."
}
}

View File

@@ -1,11 +0,0 @@
import baseConfig from '@aklive2d/prettier-config'
/**
* @type {import("prettier").Config}
*/
const config = {
...baseConfig,
semi: false,
}
export default config