@equal/eslint-config
v1.1.6
Published
An eslint config base on [standard-with-typescript](https://github.com/standard/eslint-config-standard-with-typescript).
Downloads
10
Maintainers
Readme
@equal/eslint-config
An eslint config base on standard-with-typescript.
Installation
npm i -D @equal/eslint-config
Typescript
# .estlintrc.yml
root: true
env:
es6: true
jest: true
node: true
extends:
- "@equal/eslint-config/typescript"
Typescript + ReactJS
# .estlintrc.yml
env:
es6: true
jest: true
browser: true
extends:
- "@equal/eslint-config/typescript-react"
Typescript + Prettier
npm i -D prettier eslint-config-prettier eslint-plugin-prettier
# .estlintrc.yml
env:
es6: true
jest: true
node: true
extends:
- "@equal/eslint-config/typescript"
- prettier
- prettier/@typescript-eslint
- prettier/standard
rules:
prettier/prettier: error
plugins:
- "@typescript-eslint"
- prettier