1.0.10 • Published 2 years ago

eslint-config-react-typescript v1.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

Eslint lint configuration for TypeScript and React

npm github-workflow

Installation

$ yarn add -D eslint @typescript-eslint/eslint-plugin eslint-config-react-typescript

How to use

module.exports = {
  extends: ['eslint-config-react-typescript'],
  env: {
    node: true,
  },
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
  },
}

For React TypeScript project:

module.exports = {
  extends: ['eslint-config-react-typescript/lib/react'],
  env: {
    browser: true,
  },
  parserOptions: {
    project: 'tsconfig.json',
    sourceType: 'module',
  },
}