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-react

Latest version: v1.2.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: shironex
0 Stars
0 Forks
9 Versions
1.6K Downloads
TypeScript Repo language

Scan summary

@noctcore/eslint-plugin-react was last scanned on 1 Dec 2026 at version 1.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 1.2.0.
  • Downloads: 1,569 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.0 LATEST 1 Dec 2026 No rules fired
1.1.0 12 Nov 2026 No rules fired
1.0.0 10 Nov 2026 No rules fired
0.4.2 24 Sep 2026 Not shown
0.4.1 24 Sep 2026 Not shown

No rules fired in 1.2.0

Findings

Findings for v1.2.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 1.2.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-react

React architecture and correctness rules: unmemoized context values, effects without cleanup, state derived in effects, and components that grow past what one file should hold.

Docs: noctcore.github.io/eslint-plugins/packages/react

Not a good fit for a codebase that keeps hooks inline by convention, or a library of generic primitives where wide prop surfaces are the point.

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, add a files pattern and @typescript-eslint/parser, as in the quick start.

Install

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

Quick start

// eslint.config.js
import tsParser from '@typescript-eslint/parser';
import react from '@noctcore/eslint-plugin-react';

export default [
  {
    ...react.configs.recommended,
    files: ['**/*.{ts,tsx}'],
    languageOptions: { parser: tsParser },
  },
  // Optional: tune a preset rule's options.
  {
    files: ['**/*.{ts,tsx}'],
    rules: {
      'noctcore-react/no-prop-drilling': ['error', { maxForwarded: 4 }],
    },
  },
];

Strict preset

configs.strict is recommended plus the house rules: component-props-naming, max-hook-return-surface, max-hooks-per-file, max-props-per-component, max-state-per-hook, no-jsx-computation, no-state-in-component-body. A house rule holds in a codebase that follows the same convention and reports widely in one that does not, so it is one spread away instead of on by default.

They are this house's React conventions, not defects every codebase has: a props naming scheme (component-props-naming), size caps (max-*), and a thin component shell that keeps state and list rendering out of the component body (no-state-in-component-body, no-jsx-computation).

// eslint.config.js
export default [
  {
    ...react.configs.strict,
    files: ['**/*.{ts,tsx}'],
    languageOptions: { parser: tsParser },
  },
];

Upgrading to 1.0: recommended no longer turns on component-props-naming, max-hook-return-surface, max-hooks-per-file, max-props-per-component, no-jsx-computation, no-state-in-component-body. To keep the 0.x behaviour, spread configs.strict where you spread configs.recommended, or enable the rules you want one by one.

Opt-in rules

Three rules are left out of recommended: enforce-context-consumption does nothing until its contexts registry is set, no-native-date-input enforces a house convention (use the design system's date picker) rather than a defect every codebase has, and no-hardcoded-design-values is for design system and UI library packages that theme through tokens.

// eslint.config.js
export default [
  // ...the quick start's entries, then:
  {
    files: ['**/*.{ts,tsx}'],
    languageOptions: { parser: tsParser },
    rules: {
      'noctcore-react/enforce-context-consumption': ['error', {
        contexts: [{
          hook: 'useTaskActions',
          files: ['src/components/board/**'],
          providedProps: ['onRun', 'onCancel', 'onDelete'],
        }],
      }],
      'noctcore-react/no-native-date-input': ['error', {
        replacement: '`DateField` from `@/shared/components/DateField`',
        allowIn: ['**/DateField/**'],
      }],
    },
  },
  {
    // The component library only: an app may use the palette directly.
    files: ['packages/ui/src/**/*.tsx'],
    rules: {
      'noctcore-react/no-hardcoded-design-values': ['error', {
        allowedVarPrefixes: ['--color-', '--radius-', '--space-', '--font-', '--shadow-', '--motion-'],
      }],
    },
  },
];

Rules

✅ on in recommended (error) · ☑️ on in strict only (error) · 🔘 opt-in: in neither preset, enable it yourself · ⚙️ needs options · 🔧 --fix · 💡 suggestions · 💭 needs type info · ❌ deprecated

Rule Description Preset ⚙️ 🔧 💡 💭
component-props-naming A function component's first-param props type must be named <Component>Props. Autofixes by renaming the in-file type declaration and its references when that is safe. ☑️ 🔧
context-value-must-be-memoized A context Provider value must not be an inline object, array or function: a fresh reference each render re-renders every consumer. Memoize it with useMemo / useCallback and pass the stable reference. ✅
enforce-context-consumption A prop whose value a registered scoped context already supplies must be read from the context, not declared or destructured as a prop again. 🔘 ⚙️
max-hook-return-surface An exported use* hook in a hook file may return object literals (top-level or nested one level) of at most max (default 20) members. Wider returns are god-controllers in the making. ☑️
max-hooks-per-file A hook/query/mutation file (default *.hooks.ts / *.queries.ts / *.mutations.ts) may export at most max (default 4) use* hooks. Split larger files. ☑️
max-props-per-component A *Props interface/type-literal may declare at most max (default 12) local members. extends clauses are not counted. ☑️
max-state-per-hook A use* hook in a hook file may keep at most max (default 4) useState / useReducer slots, and a function inside it may call at most maxSettersPerFunction (default 3) distinct setters. Group the rest in a reducer. ☑️
no-effect-derived-state An effect whose entire body is setState calls with values derived purely from its dependencies is the "you might not need an effect" anti-pattern: compute the value during render (or with useMemo) instead. ✅
no-hardcoded-design-values Disallow hardcoded colours, spacing, font sizes and families, radii, shadows and motion in class strings, inline styles and CSS-in-JS, so a theme can restyle components through design tokens. 🔘
no-jsx-computation Disallow array methods, arithmetic, and chained logical expressions directly inside JSX {...}. Lift them to a const above the return or into the hook. ☑️
no-jsx-in-hooks A use*-named function must not return JSX: that is a component wearing a hook costume. Rename it to a PascalCase component, or return values instead of elements. ✅
no-native-date-input Disallow native date inputs (type="date" and friends): Chromium formats them in the browser UI language and ignores lang, so the date order can contradict the page. 🔘
no-prop-drilling A bundle of maxForwarded+ (default 4) props each forwarded unchanged (name={name}) from the *Props param to the same child component is prop drilling. Compose instead. ✅
no-state-in-component-body State/effect/query hooks must live in the colocated hook file (<Name>.hooks.ts), not in the component .tsx body. The component is a thin shell. ☑️
no-unguarded-web-storage A localStorage / sessionStorage access must sit inside a try with a catch: the access itself throws when storage is disabled, partitioned or full. ✅ 💡
password-input-requires-autocomplete A password field must carry an explicit autoComplete purpose, so a password manager can fill the current password and save a new one. ✅
prefer-lazy-state-init A useState initializer that is an expensive call (default JSON.parse / localStorage.getItem / sessionStorage.getItem, or a configured builder) must be wrapped in a function so it runs once on mount, not every render. ✅ 🔧
props-must-be-visual Component props must be visual. Auth/business-identity and credential prop names (userId, currentUser, *token*, *jwt*, *secret*, apiKey, ...) are disallowed. A live password input is a legitimate visual concern and is intentionally allowed. ✅
require-effect-cancellation A setState/dispatch that runs after an await or .then() inside a useEffect must be guarded against a unmounted/re-run effect (AbortController, a cancelled flag, or a cleanup return). ✅

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-react

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229