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.
@digital-wafa/eslint-config
Advanced tools
A shared eslint configuration to use in digital wafa projects
npm install @digital-wafa/eslint-config --save-dev
It highly recommend extending the base config if you are using create-react-app
if you don't skip this config :
{
"extends": ["react-app"]
}
Add this config to your .eslintrc
:
{
"extends": [
"@digital-wafa/eslint-config"
],
"rules": {
/* custom rules */
}
}
This config also exposes a few other configs that I use often and pull in as needed.
You can use them standalone:
{
"extends": [
"@digital-wafa/eslint-config/<config-name>",
]
}
Or in combination with the base config (recommended)
{
"extends": [
"@digital-wafa/eslint-config",
"@digital-wafa/eslint-config/<config-name>",
]
}
{
"extends": [
"@digital-wafa/eslint-config",
"@digital-wafa/eslint-config/react",
"@digital-wafa/eslint-config/typescript"
],
"rules": {
/* custom rules */
},
}
When working with TypeScript
, you'll need to provide an overrides object for rules that should only target TypeScript files.
{
/* your base config */
"overrides": [
{
"files": [
"**/*.ts?(x)"
],
"rules": {
/* custom rules */
}
}
]
}
You can add two scripts to your package.json to lint and/or fix:
{
"scripts": {
"lint": "eslint ./src/*",
"lint:fix": "eslint ./src/* --fix"
},
}
Tip: You can alternatively put this object in your package.json
under the property "eslintConfig":
. This makes one less file in your project.
FAQs
eslint configuration
We found that @digital-wafa/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.