0.4.1 • Published 4 months ago

@topotal/eslint-config-react v0.4.1

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

@topotal/eslint-config-react

npm version

This is a common ESlint setting for React used within Topotal

Installation

yarn add -D @topotal/eslint-config-react

If your npm version is lower than v6, please also install the peerDependencies package.

yarn add -D eslint-plugin-react eslint-plugin-react-hooks

Usage

Legacy ESLint Configuration (ESLint v8 and below)

Add @topotal/eslint-config-react to eslintrc extends.

{
  "extends": [
    "@topotal/eslint-config-react"
  ]
}

Flat ESLint Configuration (ESLint v9 and above)

In your eslint.config.js:

const topotalReactConfig = require('@topotal/eslint-config-react/flat');

// Or using the conditional exports (recommended)
// const { flat: topotalReactConfig } = require('@topotal/eslint-config-react');

module.exports = [
  topotalReactConfig,
  // other configs...
];
0.4.1

4 months ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.2

2 years ago

0.3.3

2 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.6-alpha.0

4 years ago