Scan your whole stack
From OX Research Newsroom
Are you using @noctcore/eslint-plugin-react?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.0
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
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.bun add -D @noctcore/eslint-plugin-react @typescript-eslint/parser # or npm i -D / pnpm add -D
// 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 }],
},
},
];
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.
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-'],
}],
},
},
];
✅ 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). |
✅ |
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.