From 73350956e5c4d0bb61e1278f4f4495ffa9751696 Mon Sep 17 00:00:00 2001 From: keshigomu Date: Wed, 28 Sep 2022 16:47:14 +0900 Subject: [PATCH] do yarn lint-fix --- .../src/expressions/VRMExpressionMaterialColorType.ts | 3 ++- .../src/firstPerson/VRMFirstPersonMeshAnnotationType.ts | 3 ++- packages/three-vrm-core/src/humanoid/VRMHumanBones.ts | 5 +++-- packages/three-vrm-core/src/humanoid/VRMHumanoidRig.ts | 4 +--- .../src/MToonMaterialOutlineWidthMode.ts | 3 ++- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/three-vrm-core/src/expressions/VRMExpressionMaterialColorType.ts b/packages/three-vrm-core/src/expressions/VRMExpressionMaterialColorType.ts index 6bf9697ae..733e39941 100644 --- a/packages/three-vrm-core/src/expressions/VRMExpressionMaterialColorType.ts +++ b/packages/three-vrm-core/src/expressions/VRMExpressionMaterialColorType.ts @@ -9,7 +9,8 @@ export const VRMExpressionMaterialColorType = { OutlineColor: 'outlineColor', } as const; -export type VRMExpressionMaterialColorType = typeof VRMExpressionMaterialColorType[keyof typeof VRMExpressionMaterialColorType]; +export type VRMExpressionMaterialColorType = + typeof VRMExpressionMaterialColorType[keyof typeof VRMExpressionMaterialColorType]; export const v0ExpressionMaterialColorMap: { [key: string]: VRMExpressionMaterialColorType | undefined } = { _Color: VRMExpressionMaterialColorType.Color, diff --git a/packages/three-vrm-core/src/firstPerson/VRMFirstPersonMeshAnnotationType.ts b/packages/three-vrm-core/src/firstPerson/VRMFirstPersonMeshAnnotationType.ts index 98f898233..d2748e1e7 100644 --- a/packages/three-vrm-core/src/firstPerson/VRMFirstPersonMeshAnnotationType.ts +++ b/packages/three-vrm-core/src/firstPerson/VRMFirstPersonMeshAnnotationType.ts @@ -7,4 +7,5 @@ export const VRMFirstPersonMeshAnnotationType = { FirstPersonOnly: 'firstPersonOnly', } as const; -export type VRMFirstPersonMeshAnnotationType = typeof VRMFirstPersonMeshAnnotationType[keyof typeof VRMFirstPersonMeshAnnotationType]; +export type VRMFirstPersonMeshAnnotationType = + typeof VRMFirstPersonMeshAnnotationType[keyof typeof VRMFirstPersonMeshAnnotationType]; diff --git a/packages/three-vrm-core/src/humanoid/VRMHumanBones.ts b/packages/three-vrm-core/src/humanoid/VRMHumanBones.ts index 6f2d0b473..ec2eec301 100644 --- a/packages/three-vrm-core/src/humanoid/VRMHumanBones.ts +++ b/packages/three-vrm-core/src/humanoid/VRMHumanBones.ts @@ -5,5 +5,6 @@ import type { VRMRequiredHumanBoneName } from './VRMRequiredHumanBoneName'; /** * A map from {@link VRMHumanBoneName} to {@link VRMHumanBone}. */ -export type VRMHumanBones = { [name in VRMHumanBoneName]?: VRMHumanBone } & - { [name in VRMRequiredHumanBoneName]: VRMHumanBone }; +export type VRMHumanBones = { [name in VRMHumanBoneName]?: VRMHumanBone } & { + [name in VRMRequiredHumanBoneName]: VRMHumanBone; +}; diff --git a/packages/three-vrm-core/src/humanoid/VRMHumanoidRig.ts b/packages/three-vrm-core/src/humanoid/VRMHumanoidRig.ts index eb31407d6..44c56d1e2 100644 --- a/packages/three-vrm-core/src/humanoid/VRMHumanoidRig.ts +++ b/packages/three-vrm-core/src/humanoid/VRMHumanoidRig.ts @@ -11,9 +11,7 @@ const _quatA = new THREE.Quaternion(); * A class represents the normalized Rig of a VRM. */ export class VRMHumanoidRig extends VRMRig { - protected static _setupTransforms( - modelRig: VRMRig, - ): { + protected static _setupTransforms(modelRig: VRMRig): { rigBones: VRMHumanBones; root: THREE.Object3D; parentWorldRotations: { [boneName in VRMHumanBoneName]?: THREE.Quaternion }; diff --git a/packages/three-vrm-materials-mtoon/src/MToonMaterialOutlineWidthMode.ts b/packages/three-vrm-materials-mtoon/src/MToonMaterialOutlineWidthMode.ts index 98d9ed411..b1272e786 100644 --- a/packages/three-vrm-materials-mtoon/src/MToonMaterialOutlineWidthMode.ts +++ b/packages/three-vrm-materials-mtoon/src/MToonMaterialOutlineWidthMode.ts @@ -6,4 +6,5 @@ export const MToonMaterialOutlineWidthMode = { ScreenCoordinates: 'screenCoordinates', } as const; -export type MToonMaterialOutlineWidthMode = typeof MToonMaterialOutlineWidthMode[keyof typeof MToonMaterialOutlineWidthMode]; +export type MToonMaterialOutlineWidthMode = + typeof MToonMaterialOutlineWidthMode[keyof typeof MToonMaterialOutlineWidthMode];