Ofri Peretz
Ofri Peretz
Do you want to request a *feature* or report a *bug*? ----------------------------------------------------- `Flags.file` support, `Flags.folder` support, and combined both file and folder flag. Currently, when I want one of my...
Section 6.1 / `sections/security/lintrules.md` currently recommends `tslint-config-security`, but TSLint was deprecated in 2019 and that package is unmaintained. The `eslint-plugin-security` link also points to the archived `nodesecurity` org instead of...
secure-coding/detect-object-injection: false positive on a write into an Object.create(null) target
**Plugin:** eslint-plugin-secure-coding 6.1.1, rule `detect-object-injection` A computed write into an object created with `Object.create(null)` is still reported as prototype pollution. A prototype-less target has no prototype to reach: `target['__proto__'] =...
## What happens `browser-security/require-postmessage-origin-check` (eslint-plugin-browser-security 3.0.2) reports a dedicated worker's message handler: ```js // worker.js, started with new Worker(url) self.onmessage = (event) => { self.postMessage(event.data); }; ``` ``` browser-security/require-postmessage-origin-check: postMessage...
## What happens `react-features/no-unknown-property` (eslint-plugin-react-features 2.0.2) reports React's capture-phase event props as unknown DOM properties. React supports a `…Capture` variant of every event handler. ```jsx export const A = ()...
**Plugin:** eslint-plugin-reliability 5.0.2, `recommended` preset. **Repro:** ```js export function g(room, SCENE) { const take = room.path.map((id) => SCENE[id]).find((s) => s && s.type === "takeaway"); return take ? [...room.phones.values()].map((x) => x.answers[take.id])...
**Plugin:** eslint-plugin-react-a11y 3.0.2, `recommended` preset. All of these are warnings. **Repro:** ```tsx import type { ComponentProps } from "react"; export function H({ on }: { on: boolean }) { return...
**Plugin:** eslint-plugin-react-a11y 3.0.2, `recommended` preset. **Repro (base-ui / Radix `render`/`asChild` pattern):** ```tsx import { Button } from "./button"; export function B() { return Read the docs; } ``` **Actual:** -...
**Plugin:** eslint-plugin-react-a11y 3.0.2, `recommended` preset. **Repro:** ```tsx import { Button } from "./button"; export function A({ go }: { go: () => void }) { return Save; } ``` **Actual:**...
Found by the eslint monorepo's own self-lint (`[email protected]` recommended over `packages/*/src`): `packages/eslint-plugin-nestjs-security/src/rules/require-throttler/index.ts:94`. ## Minimal repro ```ts export const SENSITIVE_ROUTE_TOKENS = [ 'login', 'signup', 'password', 'reset', ]; ``` Reported at line...