
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
eslint-plugin-typescript-inheritance
Advanced tools
ESLint typescript plugin to control class inheritance
ESLint typescript plugin to control inheritance. By default it forbids all inheritance except inheritance of abstract classes. See rule description for the details.
:warning: This tutorial implies that typescript-eslint is installed and linting with type information is set up
npm install eslint-plugin-typescript-inheritance --save-dev
Note: If you installed ESLint globally then you must also install eslint-plugin-typescript-inheritance
globally.
Add typescript-inheritance
to the plugins section. You can omit the eslint-plugin-
prefix:
{
"plugins": ["typescript-inheritance"]
}
Then enable all rules with recommended configuration:
{
"extends": ["plugin:typescript-inheritance/recommended"]
}
Or configure the rules you want to use under the rules section:
{
"rules": {
"typescript-inheritance/no-class-inheritance": ["error"]
}
}
Name | Description |
---|---|
typescript-inheritance/no-class-inheritance | Forbids usage of class inheritance except inheritance of abstract classes (by default) |
FAQs
ESLint typescript plugin to control class inheritance
We found that eslint-plugin-typescript-inheritance 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.