Skip to content

Commit

Permalink
feat: temporally tweak eslint for deconstructed props
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 22, 2023
1 parent ccd0581 commit 8803e8f
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 161 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ module.exports = {
'vue/no-multiple-template-root': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/setup-compiler-macros': 0,
'vue/no-dupe-keys': 'off', // TODO: remove this when https://github.com/vuejs/eslint-plugin-vue/issues/2121 is fixed
},
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"docs:preview": "vitepress preview docs"
},
"peerDependencies": {
"@tresjs/core": "2.0.0",
"@tresjs/core": "2.1.1",
"three": "latest",
"vue": "^3.2.47"
"vue": "^3.3.4"
},
"devDependencies": {
"@alvarosabu/prettier-config": "^1.3.0",
"@release-it/conventional-changelog": "^5.1.1",
"@tweakpane/plugin-essentials": "^0.1.8",
"@types/node": "^20.2.3",
"@types/three": "^0.152.0",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"@vitejs/plugin-vue": "^4.2.3",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -70,12 +70,12 @@
"rollup-plugin-visualizer": "^5.9.0",
"tweakpane": "^3.1.9",
"typescript": "^5.0.4",
"unocss": "^0.52.0",
"unocss": "^0.52.1",
"vite": "^4.3.8",
"vite-plugin-banner": "^0.7.0",
"vite-plugin-dts": "2.3.0",
"vite-svg-loader": "^4.0.0",
"vitepress": "1.0.0-alpha.76"
"vitepress": "1.0.0-beta.1"
},
"dependencies": {
"@tresjs/core": "2.1.1",
Expand Down
6 changes: 0 additions & 6 deletions playground/src/components/TheSmoke.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@
import { TresCanvas } from '@tresjs/core'
import { OrbitControls, Smoke, Box } from '@tresjs/cientos'
import { SRGBColorSpace, NoToneMapping } from 'three'
import { ref } from 'vue'
const gl = {
clearColor: '#333',
alpha: true,
outputColorSpace: SRGBColorSpace,
toneMapping: NoToneMapping,
}
const speed = ref(1)
const wireframe = ref(true)
</script>

<template>
<div><button @click="wireframe = !wireframe">Click</button></div>

<TresCanvas v-bind="gl" ref="canvas">
<TresPerspectiveCamera :position="[0, 2, 5]" />
<Suspense>
Expand Down
Loading

0 comments on commit 8803e8f

Please sign in to comment.