Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@noctcore/eslint-plugin-three

Latest version: v0.1.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: shironex
0 Stars
0 Forks
3 Versions
TypeScript Repo language

Scan summary

@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.

  • Releases: 3 versions, all published on 1 Dec 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.1.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

@noctcore/eslint-plugin-three

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.

Requirements

  • ESLint 9 or 10, flat config (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.

Install

bun add -D @noctcore/eslint-plugin-three @typescript-eslint/parser   # or npm i -D / pnpm add -D

Quick start

// 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 } } },
  },
];

Opt-in rules

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',
    },
  },
];

Rules

✅ 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. ✅

Severity policy

Every rule is error or off, never warn: a warning is a rule nobody obeys. See the severity policy.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @noctcore/eslint-plugin-three

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229