build: update all deps and migrate to biome
This commit is contained in:
2
apps/module/.ignore
Normal file
2
apps/module/.ignore
Normal file
@@ -0,0 +1,2 @@
|
||||
spine-ts
|
||||
build
|
||||
@@ -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', 'spine-ts'],
|
||||
},
|
||||
{
|
||||
files: ['**/*.js', '**/*.ts'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
globals: {
|
||||
...globals.browser,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{ argsIgnorePattern: '^_' },
|
||||
],
|
||||
},
|
||||
}
|
||||
)
|
||||
@@ -4,17 +4,13 @@
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint && prettier --check ."
|
||||
"lint": "biome lint --write .",
|
||||
"lint:fix": "biome check --write ."
|
||||
},
|
||||
"peerDependencies": {
|
||||
"globals": ">=16.0.0",
|
||||
"typescript-eslint": ">=8.31.1",
|
||||
"typescript": ">=5.8.2"
|
||||
"typescript": ">=5.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aklive2d/postcss-config": "workspace:*",
|
||||
"@aklive2d/prettier-config": "workspace:*",
|
||||
"@aklive2d/stylelint-config": "workspace:*",
|
||||
"@aklive2d/eslint-config": "workspace:*"
|
||||
"@aklive2d/postcss-config": "workspace:*"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
import baseConfig from '@aklive2d/prettier-config'
|
||||
|
||||
/**
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
const config = {
|
||||
...baseConfig,
|
||||
semi: false,
|
||||
}
|
||||
|
||||
export default config
|
||||
@@ -208,7 +208,9 @@ export class Player {
|
||||
: config.premultipliedAlpha,
|
||||
fps: config.fps ? config.fps : 60,
|
||||
scale: config.scale ? config.scale : 1,
|
||||
// biome-ignore lint/suspicious/noEmptyBlockStatements: placeholder
|
||||
success: config.success ? config.success : (_widget) => {},
|
||||
// biome-ignore lint/suspicious/noEmptyBlockStatements: placeholder
|
||||
error: config.error ? config.error : (_widget, _msg) => {},
|
||||
defaultMix:
|
||||
typeof config.defaultMix === 'undefined'
|
||||
@@ -303,7 +305,7 @@ export class Player {
|
||||
this.canvas.height = Math.floor(h * this.devicePixelRatio)
|
||||
}
|
||||
this.context.gl.viewport(0, 0, this.canvas.width, this.canvas.height)
|
||||
// eslint-disable-next-line
|
||||
// biome-ignore lint/suspicious/noEmptyBlockStatements: placeholder
|
||||
if (resizeMode === spine.webgl.ResizeMode.Stretch) {
|
||||
} else if (resizeMode === spine.webgl.ResizeMode.Expand) {
|
||||
this.sceneRenderer.camera.setViewport(w, h)
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import baseConfig from '@aklive2d/stylelint-config'
|
||||
/** @type {import('stylelint').Config} */
|
||||
export default {
|
||||
...baseConfig,
|
||||
}
|
||||
Reference in New Issue
Block a user