Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eslint-config-mahir
Advanced tools
The ultimate ESLint shareable config. This config includes all of the ESLint rules that I use in my projects.
npm install --save-dev eslint eslint-config-mahir
Add in your ESLint config
{
"extends": [
"mahir/common",
"mahir/node",
"mahir/module",
"mahir/typescript",
"mahir/react",
"mahir/next",
"mahir/edge",
"mahir/prettier"
]
}
You can remove any of the configs you don't need.
Warning:
Use mahir/prettier
last, as it disables all rules that might conflict with Prettier.
Note:
For typescript users, mahir/typescript
will try to find a tsconfig with name tsconfig.eslint.json
in the root of your project. If you want to use a different name, you can change it in your eslint config like this:
{
"parserOptions": {
"project": "./tsconfig.json"
}
}
This package contains eslint config for
common
rules common for all configsnode
rules for nodejs projectsmodule
rules for esm projectstypescript
rules for typescript projectsjsx
rules for jsx/tsx projectsreact
rules for react projects (this config contains all the jsx
rules too)next
rules for nextjs projectsedge
rules for projects running in edgejsdoc
jsdoc related configtsdoc
tsdoc related config (this config contains all the jsdoc
rules too)prettier
adds all the prettier rules to eslint.Thanks goes to these wonderful people (emoji key):
Parbez 💻 🚧 🤔 | WhiteSource Renovate 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
The ultimate ESLint shareable config
We found that eslint-config-mahir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.