https://github.com/ruanyl/eslint-config-react-typescript
Eslint configuration for Typescript and React
https://github.com/ruanyl/eslint-config-react-typescript
Last synced: 3 months ago
JSON representation
Eslint configuration for Typescript and React
- Host: GitHub
- URL: https://github.com/ruanyl/eslint-config-react-typescript
- Owner: ruanyl
- Created: 2020-06-23T20:46:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:07:48.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T13:46:27.024Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Eslint lint configuration for TypeScript and React
[](https://www.npmjs.com/package/eslint-config-react-typescript)
## Installation
```
$ yarn add -D eslint @typescript-eslint/eslint-plugin eslint-config-react-typescript
```## How to use
```javascript
module.exports = {
extends: ['eslint-config-react-typescript'],
env: {
node: true,
},
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
}
```### For React TypeScript project:
```javascript
module.exports = {
extends: ['eslint-config-react-typescript/lib/react'],
env: {
browser: true,
},
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
}
```