@enormora/eslint-config-react

0.0.14 • Public • Published

@enormora/eslint-config-react

Config preset for react, enabling specific rules.

Install & Setup

Install the @enormora/eslint-config-react and the base preset package via npm:

npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-react

Create an ESLint configuration file (e.g., eslint.config.js) in your project and add the base and react config to the configuration array:

import { baseConfig } from '@enormora/eslint-config-base';
import { reactConfig } from '@enormora/eslint-config-react';

export default [
    {
        ignores: ['dist/**/*']
    },
    baseConfig,
    {
        ...reactConfig,
        files: ['src/components/**/*.js']
    }
];

Readme

Keywords

none

Package Sidebar

Install

npm i @enormora/eslint-config-react

Weekly Downloads

403

Version

0.0.14

License

MIT

Unpacked Size

7.22 kB

Total Files

4

Last publish

Collaborators

  • lo1tuma
  • screendriver