@cprussin/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@cprussin/eslint-config v3.0.0Docs


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

Variables

Functions

Readme

Keywords

Package Sidebar

Install

npm i @cprussin/eslint-config

Weekly Downloads

424

Version

3.0.0

License

MIT

Unpacked Size

18.7 kB

Total Files

10

Last publish

Collaborators

  • cprussin