0.0.3 • Published 11 months ago

@trollhag/eslint-config v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@trollhag/eslint-config

test release license

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 + TypeScript
  • javascript - 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