ESLint config by Profico
This config is used to enforce some ESLint rules Profico developers use on a day-to-day basis.
Current configurations
-
recommended
(set of recommended rules, extends@typescript-eslint/recommended
,airbnb-base
andprettier
config) -
nest
(set of rules for NestJS, extended frombase
config) -
react
(set of rules for React, extended frombase
config) -
next
(set of rules for Next.js, extended fromreact
config)
Installation
Install with npm:
npm install --save-dev @profi.co/eslint-config
or with yarn:
yarn add --dev @profi.co/eslint-config
Usage
To use the recommended
config, add @profi.co
to the "extends"
array in your .eslintrc
file in one of the following ways:
{
"extends": ["@profi.co"]
}
or
{
"extends": ["@profi.co/recommended"]
}
To use any of the other provided configurations, just replace recommended
with the name of the configuration. For example:
{
"extends": ["@profi.co/react"]
}