Scan your whole stack
Are you using @noctcore/eslint-plugin-three?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
@noctcore/eslint-plugin-three was last scanned on 1 Dec 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.0.1 | 1 Dec 2026 | Not shown |
| 0.0.0-stage | 1 Dec 2026 | Not shown |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
three.js and React Three Fiber rules for the performance and leak defects that pass review and
every test: an uncapped pixel ratio, GPU resources that are never disposed or are rebuilt on every
render, allocations and React state updates in the frame loop, camera changes without
updateProjectionMatrix(), and instance writes that never reach the GPU.
Docs: noctcore.github.io/eslint-plugins/packages/three
Not a good fit for code that does not use three.js. Every rule except
capability-probe-performance-caveat (a plain WebGL check) runs only in files that import three,
a three/* subpath, three-stdlib or an @react-three/* package; a project that re-exports
three.js through its own module names it in extraModules, and its named and namespace imports
then count as three.js classes and React Three Fiber hooks too. Only static import declarations
are read: a file that loads three.js only through import() or require() is skipped (a missed
report, never a false one). Matching is by syntax, without type information.
eslint.config.js) only.configs.recommended registers the plugin and sets rule severities, nothing else. It sets no
files and no parser, so it applies to whatever files the rest of your config lints. To lint
TypeScript and TSX, add a files pattern and @typescript-eslint/parser, as in the quick start.bun add -D @noctcore/eslint-plugin-three @typescript-eslint/parser # or npm i -D / pnpm add -D
// eslint.config.js
import tsParser from '@typescript-eslint/parser';
import three from '@noctcore/eslint-plugin-three';
export default [
{
...three.configs.recommended,
files: ['src/**/*.{ts,tsx}'],
languageOptions: { parser: tsParser, parserOptions: { ecmaFeatures: { jsx: true } } },
},
];
Four rules are left out of recommended. Two depend on the project: whether a slow software
renderer is better than a fallback page, and how large a shadow map your target devices can
afford. Two report an API that three.js has deprecated but still runs, and only from the release
that deprecated it; they read the three version from the nearest package.json (or
node_modules) and report nothing when they cannot.
// eslint.config.js
export default [
// ...the quick start's entry, then:
{
files: ['src/**/*.{ts,tsx}'],
languageOptions: { parser: tsParser, parserOptions: { ecmaFeatures: { jsx: true } } },
rules: {
'noctcore-three/capability-probe-performance-caveat': 'error',
'noctcore-three/shadow-map-size-cap': ['error', { maxMapSize: 2048 }],
// On three.js r182 or later (r186 for the WebGPU build): PCFSoftShadowMap, and <Canvas shadows> on React Three Fiber below 10.
'noctcore-three/explicit-shadow-map-type': 'error',
// On three.js r183 or later: new Clock().
'noctcore-three/no-deprecated-clock': 'error',
},
},
];
✅ on in recommended (error) · 🔘 opt-in: not on in recommended, enable it yourself · ⚙️ needs options · 🔧 --fix · 💡 suggestions · 💭 needs type info · ❌ deprecated
| Rule | Description | Preset | ⚙️ | 🔧 | 💡 | 💭 |
|---|---|---|---|---|---|---|
capability-probe-performance-caveat |
Require failIfMajorPerformanceCaveat: true on a WebGL getContext() call whose result is only tested, so a support check says no on software renderers. |
🔘 | ||||
explicit-shadow-map-type |
Disallow the deprecated PCFSoftShadowMap, named directly or selected through R3F <Canvas shadows>, from the three.js release that deprecated it (r182, or r186 for the WebGPU build). |
🔘 | ||||
instanced-mesh-needs-update |
Require instanceMatrix.needsUpdate (or instanceColor.needsUpdate) to be set in the function that calls setMatrixAt() (or setColorAt()) on an InstancedMesh. |
✅ | ||||
no-allocation-in-frame-loop |
Disallow constructing three.js math objects or GPU resources, or cloning an object's transform fields, inside a frame loop (useFrame, setAnimationLoop, a self-scheduling requestAnimationFrame function). |
✅ | ||||
no-deprecated-clock |
Disallow constructing the deprecated three.js Clock on three.js r183 or later, where Timer replaces it. |
🔘 | ||||
no-react-state-in-frame-loop |
Disallow calling a React state setter unconditionally inside a frame loop (useFrame, setAnimationLoop, a self-scheduling requestAnimationFrame function). |
✅ | ||||
no-resource-creation-in-render |
Disallow constructing three.js geometries, materials, textures, render targets or loaders directly in a React component body, where every render makes a new one. | ✅ | ||||
renderer-dpr-cap |
Disallow a renderer pixel ratio taken straight from devicePixelRatio or set above a cap, in setPixelRatio() and R3F <Canvas dpr>. |
✅ | ||||
require-dispose |
Require dispose() for three.js geometries, materials, textures and render targets that a React effect creates and puts in the scene. |
✅ | ||||
shadow-map-size-cap |
Disallow a light shadow.mapSize above a cap, set in code or through R3F shadow-mapSize props. |
🔘 | ||||
update-projection-matrix-after-camera-change |
Require camera.updateProjectionMatrix() after assigning a projection field (fov, aspect, near, far, zoom, orthographic bounds) in the same function. |
✅ |
Every rule is error or off, never warn: a warning is a rule nobody obeys. See the
severity policy.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.