Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/eslint-config-react-typescript
Eslint configuration for Typescript and React
https://github.com/ruanyl/eslint-config-react-typescript
Last synced: about 1 month 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:07:48.000Z (over 1 year ago)
- Last Synced: 2024-12-05T18:17:15.864Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 3
- 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
[![npm](https://img.shields.io/npm/v/eslint-config-react-typescript.svg)](https://www.npmjs.com/package/eslint-config-react-typescript)
![github-workflow](https://github.com/ruanyl/eslint-config-react-typescript/workflows/Build/badge.svg)## 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',
},
}
```