build: update all deps and migrate to biome
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
dist
|
||||
data
|
||||
auto_update
|
||||
@@ -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: '^_' },
|
||||
],
|
||||
},
|
||||
}
|
||||
)
|
||||
@@ -1,20 +1,20 @@
|
||||
import path from 'node:path'
|
||||
import { DIST_DIR as ASSETS_DIST_DIR } from '@aklive2d/assets'
|
||||
import { files as backgroundFiles } from '@aklive2d/background'
|
||||
import { defaultRegion } from '@aklive2d/charword-table'
|
||||
import config from '@aklive2d/config'
|
||||
import { env, file } from '@aklive2d/libs'
|
||||
import { mapping as musicMapping } from '@aklive2d/music'
|
||||
import operators, {
|
||||
OPERATOR_SOURCE_FOLDER,
|
||||
generateAssetsJson,
|
||||
OPERATOR_SOURCE_FOLDER,
|
||||
} from '@aklive2d/operator'
|
||||
import {
|
||||
getExtractedFolder,
|
||||
getActualFilename,
|
||||
findSkel,
|
||||
getActualFilename,
|
||||
getExtractedFolder,
|
||||
} from '@aklive2d/operator/libs/utils'
|
||||
import type { OperatorConfig } from '@aklive2d/operator/types'
|
||||
import { DIST_DIR as ASSETS_DIST_DIR } from '@aklive2d/assets'
|
||||
import { file, env } from '@aklive2d/libs'
|
||||
import { files as backgroundFiles } from '@aklive2d/background'
|
||||
import { mapping as musicMapping } from '@aklive2d/music'
|
||||
import { defaultRegion } from '@aklive2d/charword-table'
|
||||
import type { ProjectJSON } from '@aklive2d/project-json/types'
|
||||
|
||||
interface DirectoryOperatorConfig extends OperatorConfig {
|
||||
|
||||
@@ -6,22 +6,19 @@
|
||||
"main": "index.ts",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aklive2d/eslint-config": "workspace:*",
|
||||
"@aklive2d/operator": "workspace:*",
|
||||
"@aklive2d/assets": "workspace:*",
|
||||
"@aklive2d/libs": "workspace:*",
|
||||
"@aklive2d/config": "workspace:*",
|
||||
"@aklive2d/music": "workspace:*",
|
||||
"@aklive2d/background": "workspace:*",
|
||||
"@aklive2d/prettier-config": "workspace:*",
|
||||
"@aklive2d/charword-table": "workspace:*"
|
||||
},
|
||||
"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 ."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import baseConfig from '@aklive2d/prettier-config'
|
||||
|
||||
/**
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
const config = {
|
||||
...baseConfig,
|
||||
semi: false,
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user