@moser-inc/eslint-config-react
v2.3.5
Published
This is the set of rules to for usage in React based projects.
Downloads
726
Readme
Moser ESLint Config React
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 (Flat)
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 moserConfig from '@moser-inc/eslint-config-react/flat';
export default moserConfig().append(...);
Usage (Legacy)
Add the config to the extends
option in your .eslintrc.cjs
file.
module.exports = {
extends: ['@moser-inc/eslint-config-react']
}