Skip to content

Commit e72635f

Browse files
committed
fix: prettier still not ignoring
1 parent 1a121c5 commit e72635f

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Diff for: .lintstagedrc.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import("lint-staged").Config} */
22
const config = {
3-
'*': ['prettier --ignore-path .gitignore --ignore-unknown --write'],
3+
'*': ['prettier --ignore-unknown --write'],
44
}
55

66
export default config

Diff for: docs/getting-started/authoring.mdx

+13-12
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,19 @@ export function Box(props) {
151151
const [active, setActive] = useState(false)
152152
useFrame((state, delta) => (meshRef.current.rotation.x += delta))
153153
154-
return (
155-
<mesh
156-
{...props}
157-
ref={meshRef}
158-
scale={active ? 1.5 : 1}
159-
onClick={(event) => setActive(!active)}
160-
onPointerOver={(event) => setHover(true)}
161-
onPointerOut={(event) => setHover(false)} >
162-
<boxGeometry args={[1, 1, 1]} />
163-
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
164-
</mesh>
165-
)
154+
return (
155+
<mesh
156+
{...props}
157+
ref={meshRef}
158+
scale={active ? 1.5 : 1}
159+
onClick={(event) => setActive(!active)}
160+
onPointerOver={(event) => setHover(true)}
161+
onPointerOut={(event) => setHover(false)}
162+
>
163+
<boxGeometry args={[1, 1, 1]} />
164+
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
165+
</mesh>
166+
)
166167
}`,
167168
'/App.js': `import {Canvas} from '@react-three/fiber'
168169
import {Box} from './Box'

0 commit comments

Comments
 (0)