-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workaround for no-unknown-property errors
- Loading branch information
1 parent
748cbf0
commit 8f12359
Showing
5 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import { | ||
AmbientLightProps, | ||
DirectionalLightProps, | ||
GroupProps, | ||
MeshProps, | ||
PointLightProps, | ||
} from "@react-three/fiber"; | ||
|
||
// Workaround to avoid disabling no-unknown-property rule | ||
// eslint is marking props for THREE components starting with lowercase as unknown | ||
|
||
export const AmbientLight = (props: AmbientLightProps) => | ||
<ambientLight {...props} />; | ||
|
||
export const DirectionalLight = (props: DirectionalLightProps) => | ||
<directionalLight {...props} />; | ||
|
||
export const Group = (props: GroupProps) => | ||
<group {...props} />; | ||
|
||
export const Mesh = (props: MeshProps) => | ||
<mesh {...props} />; | ||
|
||
export const PointLight = (props: PointLightProps) => | ||
<pointLight {...props} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters