![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
tslint-react
Advanced tools
Lint rules related to React & JSX for TSLint.
Sample configuration where tslint.json
lives adjacent to your node_modules
folder:
{
"extends": ["tslint:latest", "tslint-react"],
"rules": {
// enable tslint-react rules here
"jsx-no-lambda": true
}
}
jsx-alignment
// Good:
const element = <div
className="foo"
tabIndex={1}
>
{children}
</div>;
// Also Good:
<Button
appearance="pretty"
disabled
label="Click Me"
size={size}
/>
jsx-curly-spacing
(since v1.1.0)
["always", "never"]
jsx-no-lambda
function
syntax or ES2015 arrow syntax) inside the render
call stack works against pure component rendering. When doing an equality check between two lambdas, React will always consider them unequal values and force the component to re-render more often than necessary.jsx-no-multiline-js
jsx-no-string-ref
ref
prop of React elements is considered a legacy feature and will soon be deprecated.
Instead, use a callback.jsx-self-close
(since v0.4.0)
// bad
<div className="foo"></div>
// good
<div className="foo" />
We track rule suggestions on Github issues -- here's a useful link to view all the current suggestions. Tickets are roughly triaged by priority (P1, P2, P3).
We're happy to accept PRs for new rules, especially those marked as Status: Accepting PRs. If submitting a PR, try to follow the same style conventions as the core TSLint project.
See the Github release history.
FAQs
Lint rules related to React & JSX for TSLint
The npm package tslint-react receives a total of 74,983 weekly downloads. As such, tslint-react popularity was classified as popular.
We found that tslint-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.