1.0.3 • Published 3 years ago
@profi.co/eslint-config v1.0.3
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-baseandprettierconfig)nest(set of rules for NestJS, extended frombaseconfig)react(set of rules for React, extended frombaseconfig)next(set of rules for Next.js, extended fromreactconfig)
Installation
Install with npm:
npm install --save-dev @profi.co/eslint-configor with yarn:
yarn add --dev @profi.co/eslint-configUsage
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"]
}