@trollhag/eslint-config
v0.0.3
Published
[](https://github.com/trollhag/eslint-config/actions/workflows/test.yml) [](https://github.com/trol
Downloads
4
Maintainers
Readme
@trollhag/eslint-config
Install
npm install --save-dev eslint @trollhag/eslint-configUsage
Add a .eslintrc file with contents:
{
"extends": "@trollhag"
}The eslint-config suffix may be omitted because it is assumed by ESLint.
Configurations
This package contains the following configurations:
- default - TypeScript + JavaScript
typestrict- TypeScript strict, type checking (slower)react- React / React + TypeScriptjavascript- JavaScript
Examples
React
{
"extends": "@trollhag/eslint-config/react"
}The default and typestrict configuration require typescript and eslint as peer dependencies. The javascript configuration only requires eslint.
License
MIT © Oscar Trollhag
