Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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
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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.