0.0.3 • Published 11 months ago
@trollhag/eslint-config v0.0.3
@trollhag/eslint-config
Install
npm install --save-dev eslint @trollhag/eslint-config
Usage
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