React Doctor
492 rules react-doctor@0.9.14
Complete effective rule inventory.
Rules
No enabled React Doctor rules match this search.
-
react-doctor/three-require-animation-mixer-updateCall mixer.update(deltaSeconds) from the renderer animation loop after starting mixer actions
: error in React projects -
react-doctor/three-require-camera-aspect-on-resizeUpdate each rendered PerspectiveCamera aspect when resizing its renderer, then update its projection matrix
: error in React projects -
react-doctor/three-require-controls-cleanupDispose component-owned Three.js controls in a React cleanup so their DOM listeners are removed
: warning in React projects -
react-doctor/three-require-controls-updateCall controls.update in the animation loop when OrbitControls or MapControls enables damping or auto-rotation
: warning in React projects -
react-doctor/three-require-data-texture-updateSet texture.needsUpdate to true after changing data-texture pixels
: error in React projects -
react-doctor/three-require-dynamic-buffer-usageCall attribute.setUsage(DynamicDrawUsage) before its first render
: warning in React projects -
react-doctor/three-require-environment-for-metalProvide scene environment lighting or an envMap for strongly metallic standard and physical materials
: warning in React projects -
react-doctor/three-require-frame-deltaScale incremental transforms and interpolation by Clock.getDelta(), use delta-aware damping, or assign from absolute animation time
: warning in React projects -
react-doctor/three-require-gpu-computation-cleanupDispose component-owned GPUComputationRenderer instances during effect cleanup
: warning in React projects -
react-doctor/three-require-instanced-buffer-updateAfter setMatrixAt, setColorAt, or setMorphAt, set the matching instance buffer's needsUpdate flag to true
: error in React projects -
react-doctor/three-require-ktx2-detect-supportCall detectSupport(renderer), or await detectSupportAsync(renderer), before loading KTX2 textures
: error in React projects -
react-doctor/three-require-lighting-for-pbrAdd a light, scene environment, material envMap, lightMap, or intentional emissive source for PBR materials
: warning in React projects -
react-doctor/three-require-lit-material-normalsProvide a normal BufferAttribute or call computeVertexNormals() before applying a normal map to custom geometry
: error in React projects -
react-doctor/three-require-loader-error-handlingProvide Loader.load with an onError callback, or await, return, or otherwise observe Loader.loadAsync rejections
: warning in React projects -
react-doctor/three-require-owned-geometry-cleanupDispose locally constructed geometries when their React owner releases them
: warning in React projects -
react-doctor/three-require-owned-material-cleanupDispose locally constructed materials when their React owner releases them
: warning in React projects -
react-doctor/three-require-owned-texture-cleanupDispose locally constructed textures when their React owner releases them
: warning in React projects -
react-doctor/three-require-position-buffer-updateSet the position BufferAttribute needsUpdate flag after changing its values on the CPU
: error in React projects -
react-doctor/three-require-postprocessing-cleanupDispose component-owned postprocessing composers and resource-owning passes
: warning in React projects -
react-doctor/three-require-projection-matrix-updateCall camera.updateProjectionMatrix() after changing projection properties so Three.js renders the new frustum
: error in React projects -
react-doctor/three-require-render-in-animation-loopRender the scene or a postprocessing composer from each WebGLRenderer animation loop
: error in React projects -
react-doctor/three-require-render-target-cleanupDispose component-owned render targets in a React cleanup that follows the render target binding
: warning in React projects -
react-doctor/three-require-render-target-resetCall renderer.setRenderTarget(null) on every path after rendering to an offscreen target
: error in React projects -
react-doctor/three-require-renderer-cleanupDispose component-owned renderers and stop their animation loop or animation frame in matching React cleanup
: warning in React projects -
react-doctor/three-require-renderer-dom-attachmentPass an existing canvas to WebGLRenderer or attach renderer.domElement before presenting the scene
: warning in React projects -
react-doctor/three-require-renderer-sizeSet the WebGLRenderer drawing-buffer size before rendering a generated canvas
: warning in React projects -
react-doctor/three-require-shadows-enabledSet renderer.shadowMap.enabled = true when rendered objects cast or receive shadows
: warning in React projects -
react-doctor/three-require-texture-update-after-wrapping-changeSet texture.needsUpdate to true after changing wrapS or wrapT on a texture that has already rendered
: error in React projects -
react-doctor/three-require-transparent-for-opacityEnable transparent, alphaHash, or alphaTest when a material opacity below 1 should affect rendering
: warning in React projects -
react-doctor/three-require-uv-for-texture-mapProvide a uv, uv1, uv2, or uv3 BufferAttribute when a built-in mesh material samples a texture map
: error in React projects -
react-doctor/three-require-worker-loader-cleanupDispose component-owned DRACO and KTX2 loaders so decoder workers and internal resources are released
: warning in React projects -
react-doctor/three-shader-no-constant-out-of-bounds-indexKeep constant array, vector, and matrix indices within their declared bounds
: error in React projects -
react-doctor/three-shader-no-derivatives-in-nonuniform-flowEvaluate derivatives and implicit-LOD texture samples before fragment-input-dependent branches
: error in React projects -
react-doctor/three-shader-no-glsl1-syntax-with-glsl3Use GLSL 3 in/out declarations, texture(), and an explicit fragment output
: error in React projects -
react-doctor/three-shader-no-invalid-clamp-boundsKeep clamp minVal less than or equal to maxVal
: error in React projects -
react-doctor/three-shader-no-invalid-constant-bit-operationsKeep shift counts and bitfield ranges within the integer bit width
: error in React projects -
react-doctor/three-shader-no-invalid-constant-mathKeep constant arguments within the defined GLSL builtin and operator domains
: error in React projects -
react-doctor/three-shader-no-invalid-smoothstep-edgesKeep smoothstep edge0 below edge1 and invert the result when a descending transition is needed
: error in React projects -
react-doctor/three-shader-no-inverse-of-uniformCompute uniform matrix inverses once on the CPU and upload the result
: warning in React projects -
react-doctor/three-shader-no-redeclared-builtinsUse ShaderMaterial built-in attributes and uniforms without redeclaring them
: error in React projects