
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
eslint-config-mahir
Advanced tools
The ultimate ESLint shareable config. This config includes all of the ESLint rules that I use in my projects.
[!Important] This is a highly opinionated config. It's based on my personal preferences and the way I write code. I don't recommend using this config as is as I'll update it based on my preferences without any notice.
npm install --save-dev eslint eslint-config-mahir
Add in your eslint.config.js (for esm projects) or eslint.config.mjs
import common from 'eslint-config-mahir/common';
import node from 'eslint-config-mahir/node';
import module from 'eslint-config-mahir/module';
import typescript from 'eslint-config-mahir/typescript';
import jsx from 'eslint-config-mahir/jsx';
import react from 'eslint-config-mahir/react';
import next from 'eslint-config-mahir/next';
import mdx from 'eslint-config-mahir/mdx';
import edge from 'eslint-config-mahir/edge';
import jsdoc from 'eslint-config-mahir/jsdoc';
import tsdoc from 'eslint-config-mahir/tsdoc';
import native from 'eslint-config-mahir/native';
export default [
...common,
...node,
...module,
...typescript,
...jsx,
...react, // when using react, you can omit jsx as it's already included with react
...next,
...mdx,
...edge,
...jsdoc,
...tsdoc, // when using tsdoc, you can omit jsdoc as it's already included with tsdoc
...native, // when using native, you can omit react as it's already included with native
];
You can remove any of the configs you don't need.
Note:
For typescript users, typed linting is done via projectService
. You can learn more about it from https://typescript-eslint.io/getting-started/typed-linting/#faqs and customize it as per your need.
/**
* @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigArray}
*/
export default [
...
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: [
'files-outside-tsconfig.json',
],
defaultProject: 'tsconfig.json',
},
tsconfigRootDir: process.cwd(),
},
},
]
Warning: If you are using both
mdx
andtypescript
config, make sure add files to avoid conflicts
/**
* @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigArray}
*/
export default [
// ... other configs
...mdx.map((config) => ({
files: ['**/*.mdx'],
...config,
})),
...typescript.map((config) => ({
files: ['**/*.tsx', '**/*.ts', '**/*.cjs', '**/*.jsx', '**/*.js'],
...config,
})),
// ... other configs
];
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)native
rules for react native projects (this config contains all the react
rules too)next
rules for nextjs projectsmdx
rules for mdx projectsedge
rules for projects running in edgejsdoc
jsdoc related configtsdoc
tsdoc related config (this config contains all the jsdoc
rules too)Thanks goes to these wonderful people:
FAQs
The ultimate ESLint shareable config
The npm package eslint-config-mahir receives a total of 200 weekly downloads. As such, eslint-config-mahir popularity was classified as not popular.
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 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.