0.0.2 • Published 3 years ago
@tchthry/eslint-config v0.0.2
TechTheory ESLint Config
@tchthry/eslint-config is the base ESLint configuration for all our projects. It also includes different sub-configuration (for example React).
Installation
- Install all peer dependencies
npx install-peerdeps --dev @tchthry/eslint-config
- Install
@tchthry/eslint-config
as a dev dependency:
npm i @tchthry/eslint-config --save-dev
or
yarn add -D @tchthry/eslint-config
Usage
In your .eslintrc
, simply extend @tchthry
(eslint will automatically resolve the module).
// .eslintrc
{
"extends": ["@tchthry"]
}
If you want to use the react configuration, extend @tchtry/eslint-config/react
// .eslintrc
{
"extends": ["@tchthry/eslint-config/react"]
}