1.2.0 • Published 1 year ago

@patricktabar/eslint-config-react v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ESlint Base Configuration

Installation

You can install this ESLint configuration using npm:

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

Using this Shareable Configuration

To use a shareable config, import the package inside of an eslint.config.js file and add it into the exported array, like this:

// eslint.config.js

import configBase from '@patricktabar/eslint-config-react';

export default [...configBase];

Overriding Settings from this Shareable Configuration

You can override settings from the shareable config by adding them directly into your eslint.config.js file after importing the shareable config. For example:

// eslint.config.js

import configBase from '@patricktabar/eslint-config-react';

export default [
  ...configBase,

  rules: {
     semi: [2, "always"]
  }
];

ESlint