Module @cprussin/eslint-config - v3.0.0

This package contains a set of strict base eslint configs for packages using ESM.

Note this package exports configs in the new eslint flat config format.

Installing

Use the package manager of your choice to install:

  • npm: npm install --save-dev @cprussin/eslint-config
  • pnpm: pnpm add -D @cprussin/eslint-config
  • yarn: yarn add -D @cprussin/eslint-config

Usage

First, ensure you're using ESM (set "type": "module" in your package.json.). Then, the most basic eslint.config.js could look like this:

export { base as default } from "@cprussin/eslint-config";

To override things, just concat the config you want together, for instance:

import { base } from "@cprussin/eslint-config";

export default [
...base,
{
ignores: ["foo/bar/**"],
},
];

Index

Variables

Functions