0.0.2 • Published 4 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-configas a dev dependency:
npm i @tchthry/eslint-config --save-devor
yarn add -D @tchthry/eslint-configUsage
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"]
}