0.11.0 • Published 10 months ago

@woohm402/eslint-config-react v0.11.0

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

NPM Version

@woohm402/eslint-config-react

ESLint configuration for TypeScript React projects. This includes @woohm402/eslint-config-base and additional rules for React projects.

Installation

install:

npm install --save-dev @woohm402/eslint-config-react

Add the following to your eslint.config.js file:

import woohm402EslintConfigReact from '@woohm402/eslint-config-react';

export default [
  ...woohm402EslintConfigReact({
    envAllowedFiles: ['src/main.ts'],
    tsconfigRootDir: import.meta.dirname,
  }),
];

Rules

This configuration extends the following recommended configurations:

  • eslint-plugin-react-hooks

But treats the following rules as errors:

  • 'react-hooks/exhaustive-deps': 'error'
    • This rule is super important for using useEffect correctly.
0.11.0

10 months ago

0.10.0

10 months ago

0.9.0

11 months ago

0.8.0

11 months ago

0.7.1

12 months ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.5.0

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.3.1

1 year ago

0.0.1

1 year ago