Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 722 Bytes

react.md

File metadata and controls

29 lines (22 loc) · 722 Bytes

@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']
    }
];