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.
@emanprague/eslint-config
Advanced tools
This package contains shared rules for ESlint with TypeScript and Prettier.
Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
eslint-config v3 supports ESlint 8.
eslint-config v2 requires ESlint 7.
Use eslint-config v1 for ESlint 6 + TSlint.
Install ESlint:
yarn add eslint prettier @emanprague/eslint-config -D
Update config files as follows:
.eslintrc.js
module.exports = {
extends: [
"@emanprague/eslint-config/eslint-default"
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
},
};
.prettierrc.js
module.exports = require("@emanprague/eslint-config/prettier-config");
Note that instead of creating the .prettierrc.js
file, you can just add the following row to your package.json
file.
"prettier": "@emanprague/eslint-config/prettier-config",
And you should be good to go with:
eslint \"./src/**/*.{ts,tsx}\" --cache
How to release:
FAQs
ESlint and prettier configurations
We found that @emanprague/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.