Skip to content

Latest commit

 

History

History

README.md

Moser ESLint Config React npm

This is the set of rules to for usage in React based projects.

Installation

npm i -D eslint prettier @moser-inc/eslint-config-react

Usage

Export the config from your eslint.config.mjs file. The config exports a function that returns a composer instance (see here) that can prepend/append/override rules and configuration.

import moser from '@moser-inc/eslint-config-react';

export default moser().append(...);

For support for type checked rules, include the tsconfigPath option.

import moser from '@moser-inc/eslint-config-react';

export default moser({ tsconfigPath: './tsconfig.json' }).append(...);