Browse Source

chore: fix docs build

alvarosabu 1 year ago
parent
commit
896975d678
3 changed files with 9 additions and 8 deletions
  1. 2 2
      .eslintrc.json
  2. 5 4
      src/components/TresCanvas.vue
  3. 2 2
      src/types/index.ts

+ 2 - 2
.eslintrc.json

@@ -1,7 +1,7 @@
 {
   "extends": "@tresjs/eslint-config-vue",
   "rules": {
-    "@typescript-eslint/no-use-before-define": "off",
-    "@typescript-eslint/indent": "off"
+    "@typescript-eslint/no-use-before-define": "off"
+    /*     "@typescript-eslint/indent": "off" */
   }
 }

+ 5 - 4
src/components/TresCanvas.vue

@@ -1,12 +1,13 @@
 <script setup lang="ts">
 import {
   PerspectiveCamera,
-  Scene } from 'three'
+  Scene,
+} from 'three'
 import type {
   WebGLRendererParameters,
-  type ColorSpace,
-  type ShadowMapType,
-  type ToneMapping,
+  ColorSpace,
+  ShadowMapType,
+  ToneMapping,
 } from 'three'
 import type { Ref } from 'vue'
 import { computed, onMounted, provide, ref, shallowRef, watch, watchEffect, Fragment, defineComponent, h } from 'vue'

+ 2 - 2
src/types/index.ts

@@ -173,8 +173,8 @@ export type ThreeElement<T extends ConstructorRepresentation> = Mutable<
 type ThreeExports = typeof THREE
 type ThreeInstancesImpl = {
   [K in keyof ThreeExports as Uncapitalize<K>]: ThreeExports[K] extends ConstructorRepresentation
-  ? ThreeElement<ThreeExports[K]>
-  : never
+    ? ThreeElement<ThreeExports[K]>
+    : never
 }
 
 export interface ThreeInstances extends ThreeInstancesImpl {