-
Hello, I'm trying to make react-three-fiber compatible with linting (esLint v9). I've installed this package This is an excerpt of my eslint.config.js (flat config): import ReactThree from '@react-three/eslint-plugin'
import { ReactThreeFiber } from '@react-three/fiber'
export default [
{
files: ['**/*.{ts,tsx}'],
plugins: {
react,
'@typescript-eslint': typescript,
import: importPlugin,
'@react-three-fiber': ReactThreeFiber,
'@react-three': ReactThree
}
] and also running eslint spits out multiple errors 57:12 error Unknown property 'position' found react/no-unknown-property What do I have to do to get rid of these errors? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! You need to disable this rule: https://eslint-react.xyz/docs/rules/dom-no-unknown-property ESLint assumes all React elements are DOM only and so it is thinks our Three properties are incorrect. The only option here is to turn it off as far as I know. |
Beta Was this translation helpful? Give feedback.
Hello! You need to disable this rule: https://eslint-react.xyz/docs/rules/dom-no-unknown-property
ESLint assumes all React elements are DOM only and so it is thinks our Three properties are incorrect. The only option here is to turn it off as far as I know.