1.1.0 • Published 5 months ago

@getracker/eslint-config v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

@getracker/eslint-config

Collection of composable internal ESLint configurations.

Usage

Install the package:

pnpm add -D @getracker/eslint-config

Add the following to your .eslintrc.js:

module.exports = {
  root: true,
  extends: [
    '@getracker/eslint-config/next',
    '@getracker/eslint-config/redux',
    '@getracker/eslint-config/cypress',
  ],
};

!IMPORTANT You'll need to use require.resolve to provide ESLint with absolute paths, due to an issue around ESLint config resolution (see eslint/eslint#9188).

For Next.js, @next/eslint-plugin-next MUST be installed as a peer dependency.

Configurations

We provide top-level configurations that can be included:

  • @getracker/eslint-config/next
  • @getracker/eslint-config/library
  • @getracker/eslint-config/react-internal

Composing Configurations

One of the following configurations MUST be included first:

  • @getracker/eslint-config/browser
  • @getracker/eslint-config/node

The below configurations are optional, and should be included in the order listed:

  • @getracker/eslint-config/react
  • @getracker/eslint-config/redux
  • @getracker/eslint-config/cypress
  • @getracker/eslint-config/typescript (React)
  • @getracker/eslint-config/typescript-node