ソースを参照

chore(lint): fix lint errors

alvarosabu 1 年間 前
コミット
305f4561fe
3 ファイル変更3 行追加12 行削除
  1. 1 11
      playground/.eslintrc.json
  2. 1 1
      src/devtools/plugin.ts
  3. 1 0
      src/devtools/utils.ts

+ 1 - 11
playground/.eslintrc.json

@@ -1,17 +1,7 @@
 {
   "extends": "@tresjs/eslint-config-vue",
   "rules": {
-    "no-console": "off",
-    "vue/attribute-hyphenation": [2, "always", {
-      "ignore": [
-        "shadow-mapSize-width",
-        "shadow-mapSize-height",
-        "distortionMap",
-        "material-uniforms-mieCoefficient-value",
-        "material-uniforms-mieDirectionalG-value",
-        "material-uniforms-sunPosition-value",
-      ],
-    }],
+    "no-console": "off"
   }
 }
   

+ 1 - 1
src/devtools/plugin.ts

@@ -21,7 +21,6 @@ export interface Tags {
 export interface SceneGraphObject {
   id: string
   label: string
-  icon: string
   children: SceneGraphObject[]
   tags: Tags[]
 }
@@ -73,6 +72,7 @@ const createNode = (object: TresObject): SceneGraphObject => {
       tooltip: 'Field of view',
     })
     node.tags.push({
+      // eslint-disable-next-line max-len
       label: `x: ${Math.round(object.position.x)} y: ${Math.round(object.position.y)} z: ${Math.round(object.position.z)}`,
       textColor: 0x9499A6,
       backgroundColor: 0xF8F9FA,

+ 1 - 0
src/devtools/utils.ts

@@ -21,6 +21,7 @@ export function toastMessage(
     console.warn(tresMessage)
   }
   else {
+    // eslint-disable-next-line no-console
     console.log(tresMessage)
   }
 }