Skip to content

ruanyl/eslint-config-react-typescript

Repository files navigation

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

About

Eslint configuration for Typescript and React

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •