Update chakra and solve linter issues

master
Ian Mancini 4 years ago
parent 4d0c6617ee
commit 1c758b4243

@ -20,6 +20,7 @@ module.exports = {
],
plugins: ['prettier', 'only-warn'],
rules: {
'@typescript-eslint/ban-ts-comment': ['off'],
'react/prop-types': ['off'],
'@typescript-eslint/explicit-module-boundary-types': ['off'],
},

File diff suppressed because it is too large Load Diff

@ -3,12 +3,14 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@chakra-ui/core": "^1.0.0-rc.8",
"@chakra-ui/react": "^1.0.0",
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@loadable/component": "^5.14.1",
"@react-three/cannon": "^0.5.3",
"@react-three/drei": "^2.2.7",
"@react-three/postprocessing": "^1.5.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.1.2",
"@testing-library/user-event": "^12.2.2",
"@types/jest": "^26.0.15",

@ -56,7 +56,7 @@ const Player = (props: SphereProps) => {
material: { friction: 0, restitution: 0 },
...props,
}))
const { forward, backward, left, right, running, jump } = usePlayerControls()
const { forward, backward, left, right, running } = usePlayerControls()
const { camera } = useThree()
const velocity = useRef([0, 0, 0])
useEffect(() => void api.velocity.subscribe((v) => (velocity.current = v)), [])

@ -4,7 +4,7 @@ import { useCubeTexture } from '@react-three/drei'
export default function Model(props) {
const group = useRef()
const { nodes, materials, scene, ...rest } = useGLTF('/model/plaza.glb')
const { materials, scene } = useGLTF('/model/plaza.glb')
const envMap = useCubeTexture(
['px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png'],

@ -33,6 +33,7 @@ export default function Model(props: JSX.IntrinsicElements['group']) {
const vertices = geometry.attributes.position.array
const indices = geometry.index.array
// eslint-ignore-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const [ref] = useTrimesh(() => ({
type: 'Static',

@ -1,5 +1,5 @@
import React from 'react'
import { ChakraProvider } from '@chakra-ui/core'
import { ChakraProvider } from '@chakra-ui/react'
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'
import loadable from '@loadable/component'

@ -1,5 +1,5 @@
import React from 'react'
import { Heading, Stack, Link, Spacer, Text } from '@chakra-ui/core'
import { Heading, Stack, Link, Spacer, Text } from '@chakra-ui/react'
const Login: React.FC = () => {
return (

@ -1,6 +1,6 @@
import React from 'react'
import { Box } from '@chakra-ui/core'
import { Box } from '@chakra-ui/react'
import { Canvas } from 'react-three-fiber'
import Scene from '../3d'

Loading…
Cancel
Save