New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

eslint-config-zoro

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-zoro

A fully customized ESLint configuration based on the default ESLint, React and TypeScript rules.

latest
Source
npmnpm
Version
9.0.7
Version published
Maintainers
1
Created
Source

Zoro's ESLint Configuration

A fully customized ESLint configuration based on ESLint, Stylistic, Perfectionist, TypeScript, React and Node rules.

GitHub CI GitHub License NPM Downloads

Installation

npm i -D eslint-config-zoro eslint @stylistic/eslint-plugin eslint-plugin-perfectionist

Usage

Use defineConfig to generate ESLint configuration in your eslint.config.mjs file:

// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";

export default defineConfig();

Core Presets

The following presets are always enabled and cannot be opted out:

PresetDescription
ESLintESLint rules
StylisticStyle rules
PerfectionistSorting rules

Optional Presets

Enable optional presets by passing options to defineConfig, see Examples:

OptionPresetRequired Dependencies
typescriptTypeScript@typescript-eslint/parser @typescript-eslint/eslint-plugin
reactReact + React Hookseslint-plugin-react eslint-plugin-react-hooks
nodeNodeeslint-plugin-n

Examples

TypeScript Project

npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";

export default defineConfig({
    typescript: true
});

React + TypeScript Project

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
});

Node.js Project

npm i -D eslint-plugin-n
// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";

export default defineConfig({
    node: true
});

Custom Rules and Ignores

// eslint.config.mjs
import { defineConfig } from "eslint-config-zoro";

export default defineConfig({
    typescript: true,
    ignores: ["dist/**"],
    rules: {
        "@stylistic/indent": ["error", 2]
    }
});

Resources

Keywords

config

FAQs

Package last updated on 29 Jan 2026

Did you know?

Socket

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.

Install

Related posts