4.0.2 • Published 10 months ago

@cprussin/eslint-config v4.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@cprussin/eslint-config v4.0.2


@cprussin/eslint-config v4.0.2

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/**"],
  },
];

Variables

Functions