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.
eslint-config-neworbit
Advanced tools
ESLint configuration for NewOrbit
npm install eslint eslint-config-neworbit --save-dev
Add .eslintrc.json
file with the following contents:
{
"extends": [
"neworbit"
]
}
Setup a lint script in your package.json
something like this:
{
...
"scripts": {
...
"lint:typescript": "eslint \"./**/*.{ts,tsx}\""
}
}
Install the ESLint extension for VS Code
Make sure you have TypeScript files included in your settings:
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
If your package.json
and .eslintrc.json
files aren't in the root directory you open in VS Code you may need to add working directories in your workspace settings:
{
...
"settings": {
...
"eslint.workingDirectories": [
{
"directory": "{FOLDER_THAT_CONTAINS_CONFIG}"
}
],
}
}
For mapping TSLint rule overrides in your own project to the equivalent ESLint rules please refer to the map. If you cannot find the rule simply Google it as ESLint is plugin based and there is likely a plugin offering the required functionality.
Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence
FAQs
NewOrbit standard typescript ready eslint configuration
We found that eslint-config-neworbit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.