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

4.0.5 • Public • Published

Poool ESLint Config - React

Common ESLint rules we share between React projects at Poool

Installation

yarn add @poool/eslint-config-react --dev

Usage

import tseslint from 'typescript-eslint';
import pooolint from '@poool/eslint-config-react';

export default tseslint.config(
  {
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  ...pooolint.configs.recommended,
);

If you need to restrict the files for which the rules apply, you can use the config directly:

import tseslint from 'typescript-eslint';
import pooolint from '@poool/eslint-config-react';

export default tseslint.config(
  {
    languageOptions: {
      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  ...pooolint.configs.base,
  {
    files: ['**/*.tsx'],
    ...pooolint.configs.react,
  },
);

Readme

Keywords

none

Package Sidebar

Install

npm i @poool/eslint-config-react

Weekly Downloads

352

Version

4.0.5

License

MIT

Unpacked Size

32.6 kB

Total Files

14

Last publish

Collaborators

  • emile.poool
  • maximedasilva
  • ugo.poool
  • ademduran
  • nicolas.poool
  • simon.poool
  • tyesc