Skip to content

Commit

Permalink
Merge pull request #1470 from pixiv/bump-prettier
Browse files Browse the repository at this point in the history
deps: Bump prettier to v3.3.3
  • Loading branch information
0b5vr authored Aug 21, 2024
2 parents e4f4cbe + 5ea9a08 commit 7f15cf3
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"jest": "^29.7.0",
"lerna": "^6.6.2",
"lint-staged": "^15.1.0",
"prettier": "^2.1.2",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const VRMExpressionMaterialColorType = {
} as const;

export type VRMExpressionMaterialColorType =
typeof VRMExpressionMaterialColorType[keyof typeof VRMExpressionMaterialColorType];
(typeof VRMExpressionMaterialColorType)[keyof typeof VRMExpressionMaterialColorType];

export const v0ExpressionMaterialColorMap: { [key: string]: VRMExpressionMaterialColorType | undefined } = {
_Color: VRMExpressionMaterialColorType.Color,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const VRMExpressionOverrideType = {
Blend: 'blend',
} as const;

export type VRMExpressionOverrideType = typeof VRMExpressionOverrideType[keyof typeof VRMExpressionOverrideType];
export type VRMExpressionOverrideType = (typeof VRMExpressionOverrideType)[keyof typeof VRMExpressionOverrideType];
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export const VRMExpressionPresetName = {
Neutral: 'neutral',
} as const;

export type VRMExpressionPresetName = typeof VRMExpressionPresetName[keyof typeof VRMExpressionPresetName];
export type VRMExpressionPresetName = (typeof VRMExpressionPresetName)[keyof typeof VRMExpressionPresetName];
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const VRMFirstPersonMeshAnnotationType = {
} as const;

export type VRMFirstPersonMeshAnnotationType =
typeof VRMFirstPersonMeshAnnotationType[keyof typeof VRMFirstPersonMeshAnnotationType];
(typeof VRMFirstPersonMeshAnnotationType)[keyof typeof VRMFirstPersonMeshAnnotationType];
2 changes: 1 addition & 1 deletion packages/three-vrm-core/src/humanoid/VRMHumanBoneName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ export const VRMHumanBoneName = {
RightLittleDistal: 'rightLittleDistal',
} as const;

export type VRMHumanBoneName = typeof VRMHumanBoneName[keyof typeof VRMHumanBoneName];
export type VRMHumanBoneName = (typeof VRMHumanBoneName)[keyof typeof VRMHumanBoneName];
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export const VRMRequiredHumanBoneName = {
RightHand: 'rightHand',
} as const;

export type VRMRequiredHumanBoneName = typeof VRMRequiredHumanBoneName[keyof typeof VRMRequiredHumanBoneName];
export type VRMRequiredHumanBoneName = (typeof VRMRequiredHumanBoneName)[keyof typeof VRMRequiredHumanBoneName];
2 changes: 1 addition & 1 deletion packages/three-vrm-core/src/lookAt/VRMLookAtTypeName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const VRMLookAtTypeName = {
Expression: 'expression',
};

export type VRMLookAtTypeName = typeof VRMLookAtTypeName[keyof typeof VRMLookAtTypeName];
export type VRMLookAtTypeName = (typeof VRMLookAtTypeName)[keyof typeof VRMLookAtTypeName];
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export const MToonMaterialDebugMode = {
UV: 'uv',
} as const;

export type MToonMaterialDebugMode = typeof MToonMaterialDebugMode[keyof typeof MToonMaterialDebugMode];
export type MToonMaterialDebugMode = (typeof MToonMaterialDebugMode)[keyof typeof MToonMaterialDebugMode];
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const MToonMaterialOutlineWidthMode = {
} as const;

export type MToonMaterialOutlineWidthMode =
typeof MToonMaterialOutlineWidthMode[keyof typeof MToonMaterialOutlineWidthMode];
(typeof MToonMaterialOutlineWidthMode)[keyof typeof MToonMaterialOutlineWidthMode];
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class VRMMaterialsV0CompatPlugin implements GLTFLoaderPlugin {

const isCutoff = materialProperties.keywordMap?.['_ALPHATEST_ON'] ?? false;
const alphaMode = isTransparent ? 'BLEND' : isCutoff ? 'MASK' : 'OPAQUE';
const alphaCutoff = isCutoff ? materialProperties.floatProperties?.['_Cutoff'] ?? 0.5 : undefined;
const alphaCutoff = isCutoff ? (materialProperties.floatProperties?.['_Cutoff'] ?? 0.5) : undefined;

const cullMode = materialProperties.floatProperties?.['_CullMode'] ?? 2; // enum, { Off, Front, Back }
const doubleSided = cullMode === 0;
Expand Down Expand Up @@ -210,7 +210,7 @@ export class VRMMaterialsV0CompatPlugin implements GLTFLoaderPlugin {
);
const outlineColorMode = materialProperties.floatProperties?.['_OutlineColorMode'] ?? 0; // enum, { Fixed, Mixed }
const outlineLightingMixFactor =
outlineColorMode === 1 ? materialProperties.floatProperties?.['_OutlineLightingMix'] ?? 1.0 : 0.0;
outlineColorMode === 1 ? (materialProperties.floatProperties?.['_OutlineLightingMix'] ?? 1.0) : 0.0;

const uvAnimationMaskTextureIndex = materialProperties.textureProperties?.['_UvAnimMaskTexture'];
const uvAnimationMaskTexture =
Expand Down Expand Up @@ -291,7 +291,7 @@ export class VRMMaterialsV0CompatPlugin implements GLTFLoaderPlugin {

const isCutoff = materialProperties.shader === 'VRM/UnlitCutout';
const alphaMode = isTransparent ? 'BLEND' : isCutoff ? 'MASK' : 'OPAQUE';
const alphaCutoff = isCutoff ? materialProperties.floatProperties?.['_Cutoff'] ?? 0.5 : undefined;
const alphaCutoff = isCutoff ? (materialProperties.floatProperties?.['_Cutoff'] ?? 0.5) : undefined;

const textureTransformExt = this._portTextureTransform(materialProperties);

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5967,10 +5967,10 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==

prettier@^2.1.2:
version "2.7.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
prettier@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==

[email protected]:
version "29.4.3"
Expand Down

0 comments on commit 7f15cf3

Please sign in to comment.