Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@oursky/tslint-oursky
Advanced tools
This is a tslint config that does 2 things.
The included rules are as of tslint@v5.11.0
{
"extends": [
"@oursky/tslint-oursky"
],
"rules": {
"oursky-ban-imports": [true, ["react-native", ["Text", "Image", "*", "default"]]]
}
}
This rule allows you to ban imports from specific modules.
If you want to ban namespace import import * as a from "m";
, use *
.
If you want to ban default import import a from "m";
, use default
.
This rule is not enabled by default because we do not know what you want to ban.
For example,
"oursky-ban-imports": [true,
["react-native", ["Text", "Image", "*", "default"]],
["react", ["Component", "*", "default"]]
]
The above configuration bans Text
and Image
from react-native
,
Component
from react
.
This rule disallows inline function as JSX children.
This rule is enabled by default.
This rule disallows the usage of enum.
The rationale of banning enum is that enum is not a EMCAScript language feature. If you use this in your library, you need to be aware of what it compiles to and tell that to the users of your library. Instead of using enum, use union type to represent an enumeration. If you enable the strictest compiler options and use union type, you can have exhaustive switch statement.
You have to manually enable strictness options because the link does not remember selected options.
This rule is enabled by default.
This rule disallows static non-primitive literals in JSX.
This rationale is that static non-primitive literals break React.PureComponent or React.pure
This rule is enabled by default.
FAQs
This is a tslint config that does 2 things.
We found that @oursky/tslint-oursky demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.