
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
eslint-config-zoro
Advanced tools
A fully customized ESLint configuration based on the default ESLint, React and TypeScript rules.
A fully customized ESLint configuration based on ESLint, Stylistic, Perfectionist, TypeScript, React and Node rules.
npm i -D eslint-config-zoro eslint @stylistic/eslint-plugin eslint-plugin-perfectionist
Use defineConfig to generate ESLint configuration in your eslint.config.mjs file:
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";
export default defineConfig();
The following presets are always enabled and cannot be opted out:
| Preset | Description |
|---|---|
| ESLint | ESLint rules |
| Stylistic | Style rules |
| Perfectionist | Sorting rules |
Enable optional presets by passing options to defineConfig, see Examples:
| Option | Preset | Required Dependencies |
|---|---|---|
typescript | TypeScript | @typescript-eslint/parser @typescript-eslint/eslint-plugin |
react | React + React Hooks | eslint-plugin-react eslint-plugin-react-hooks |
node | Node | eslint-plugin-n |
npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";
export default defineConfig({
typescript: true
});
npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-react eslint-plugin-react-hooks
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";
export default defineConfig({
typescript: true,
react: true
});
npm i -D eslint-plugin-n
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";
export default defineConfig({
node: true
});
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";
export default defineConfig({
typescript: true,
ignores: ["dist/**"],
rules: {
"@stylistic/indent": ["error", 2]
}
});
FAQs
A fully customized ESLint configuration based on the default ESLint, React and TypeScript rules.
We found that eslint-config-zoro 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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.