eslint-config-react-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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',
  },
}

Package Sidebar

Install

npm i eslint-config-react-typescript

Weekly Downloads

205

Version

1.0.10

License

MIT

Unpacked Size

14.6 kB

Total Files

14

Last publish

Collaborators

  • ruanyu1