React Doctor
492 rules react-doctor@0.9.18
Complete effective rule inventory.
Rules
No enabled React Doctor rules match this search.
-
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 -
react-doctor/three-shader-no-redundant-frag-depthLet fixed-function depth supply gl_FragCoord.z when depth is unchanged
: warning in React projects -
react-doctor/three-shader-no-reserved-identifiersRename user-defined identifiers that start with gl_ or contain __
: error in React projects -
react-doctor/three-shader-no-version-directiveSet glslVersion on the material instead of writing #version in shader source
: error in React projects -
react-doctor/three-shader-prefer-small-integer-powUse explicit multiplication for powers of two, three, or four
: warning in React projects -
react-doctor/three-shader-prefer-squared-distance-comparisonCompare squared vector distance against a squared nonnegative threshold
: warning in React projects -
react-doctor/three-shader-require-compatible-uniform-valuesBind GLSL uniforms to compatible numbers, vectors, matrices, and textures
: error in React projects -
react-doctor/three-shader-require-fragment-output-on-all-pathsAssign every used fragment color output before each return and on every non-discarded path
: error in React projects -
react-doctor/three-shader-require-matching-uniformsUse the same type, array dimensions, and precision for uniforms shared by both shader stages
: error in React projects