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.
@stoplight/eslint-config
Advanced tools
Including peer dependencies.
yarn add -D eslint \
prettier \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-plugin-jest \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-simple-import-sort \
eslint-plugin-import \
@stoplight/eslint-config
Create a .eslintrc.js
file in the root of the repository with contents:
module.exports = {
extends: ['@stoplight'],
};
Create a .prettierrc.js
file in the root of the repository with contents:
module.exports = {
...require('@stoplight/eslint-config/prettier.config'),
};
{
"scripts": {
"lint": "yarn prettier.check && eslint --ext .js,.jsx,.ts,.tsx .",
"prettier.check": "prettier --ignore-path .eslintignore --check '**/*.{js,jsx,ts,tsx,md}'",
"lint.fix": "prettier --ignore-path .eslintignore --write '**/*.{js,jsx,ts,tsx,md}'; eslint --ext .js,.jsx,.ts,.tsx . --fix"
}
}
.eslintignore
Filenode_modules
dist
build
coverage
.eslintrc.js
.yalc
.yarn
.cache
gen
FAQs
Shared Stoplight linting rules.
The npm package @stoplight/eslint-config receives a total of 1,274 weekly downloads. As such, @stoplight/eslint-config popularity was classified as popular.
We found that @stoplight/eslint-config 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.
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.