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 * as alphaComposite from './libs/alpha_composite.ts'
import * as env from './libs/env.ts'
import * as envParser from './libs/env_parser.ts'
import * as error from './libs/error.ts'
import * as file from './libs/file.ts'
import * as yaml from './libs/yaml.ts'
import * as env from './libs/env.ts'
import * as error from './libs/error.ts'
import * as alphaComposite from './libs/alpha_composite.ts'
import * as envParser from './libs/env_parser.ts'
export { file }
export { yaml }

View File

@@ -1,5 +1,5 @@
import sharp from 'sharp'
import path from 'node:path'
import sharp from 'sharp'
export type Rect = {
x: number

View File

@@ -1,7 +1,7 @@
import fs from 'node:fs'
import path from 'node:path'
import type { CollectionTag, ScalarTag, SchemaOptions } from 'yaml'
import { parse } from 'yaml'
import type { Tags, ScalarTag, SchemaOptions, CollectionTag } from 'yaml'
export function read(
file_dir: string,

View File

@@ -5,23 +5,20 @@
"main": "index.ts",
"type": "module",
"dependencies": {
"@aklive2d/eslint-config": "workspace:*",
"@aklive2d/prettier-config": "workspace:*",
"sharp": "^0.33.5",
"yaml": "^2.7.0",
"sharp": "^0.34.4",
"yaml": "^2.8.1",
"yauzl-promise": "^4.0.0",
"yazl": "^3.3.1"
},
"peerDependencies": {
"globals": ">=16.0.0",
"typescript-eslint": ">=8.31.1",
"typescript": ">=5.8.2"
"typescript": ">=5.9.3"
},
"scripts": {
"lint": "eslint && prettier --check ."
"lint": "biome lint --write .",
"lint:fix": "biome check --write ."
},
"devDependencies": {
"@types/yauzl-promise": "^4.0.1",
"@types/yazl": "^2.4.6"
"@types/yazl": "^3.3.0"
}
}
}

View File

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