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.
@thebestco/eslint-config
Advanced tools
This package provides BestPrice's .eslintrc as an extensible shared config.
It's basically a clone of Airbnb's same project with different and more rules and some other minor changes
git commit -am …
npm version patch
git push
npm publish
We export four ESLint configurations for your usage.
Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires eslint
and eslint-plugin-react
.
npm install --save-dev @thebestco/eslint-config eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-react-hooks@next babel-eslint eslint
"extends": "@thebestco"
to your .eslintrcLints ES6+ but does not lint React. Requires eslint
.
npm install --save-dev @thebestco/eslint-config eslint-plugin-import babel-eslint eslint-plugin-react-hooks@next eslint
"extends": "@thebestco/eslint-config/base"
to your .eslintrcLints ES5 and below. Only requires eslint
.
npm install --save-dev @thebestco/eslint-config eslint
"extends": "@thebestco/eslint-config/legacy"
to your .eslintrcPrettier is a high opinionated powerful automatic formatter. Eslinter is a code quality tool. They can both live together but there are some compromises we have to do. We should disable all the es-rules that are effecting the code formating and interfere with the prettier.
The prettier setup contains the default export extended with the formating rules that interfere with the prettier.
It requires eslint
and eslint-plugin-react
, as it is in the default configuration.
npm install --save-dev @thebestco/eslint-config eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-react-hooks@next eslint-plugin-react-refresh babel-eslint eslint
"extends": "@thebestco/eslint-config/prettier"
to your .eslintrcnpm install -g eslint
npm install -g babel-eslint
npm install -g eslint-plugin-react
npm install -g eslint-plugin-import
npm install -g eslint-plugin-jsx-a11y
npm install -g eslint-plugin-react-hooks@next
npm install -g eslint-plugin-react-refresh
npm install -g @thebestco/eslint-config
.eslintrc
as honored.eslintignore
is in place so that you target your eslint where neededeslint . --fix
when you have your eslint in place to fix those easy to fix errorsFAQs
The BestCompany's shared eslint config
The npm package @thebestco/eslint-config receives a total of 13 weekly downloads. As such, @thebestco/eslint-config popularity was classified as not popular.
We found that @thebestco/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than 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.