https://github.com/doo/eslint-config
Shared eslint-config for all typescript projects
https://github.com/doo/eslint-config
Last synced: 3 months ago
JSON representation
Shared eslint-config for all typescript projects
- Host: GitHub
- URL: https://github.com/doo/eslint-config
- Owner: doo
- License: mit
- Created: 2021-10-08T11:02:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T08:14:35.000Z (over 4 years ago)
- Last Synced: 2025-03-20T06:44:20.898Z (over 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shared Eslint Configuration for all Typescript projects
Add it your repository:
```
npm install github:doo/eslint-config --save-dev
```
Add required dev dependencies your repository:
```
npm install prettier eslint-plugin-prettier eslint-plugin-import eslint @typescript-eslint/parser eslint-config-prettier eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/experimental-utils --save-dev
```
Example how to use this package in your typescript project (.eslintrc.js):
```
module.exports = {
extends: [
'@doo/eslint-config'
]
};
```
## React Apps
Example how to use this package in your React apps (.eslintrc.js):
```
module.exports = {
extends: [
'@doo/eslint-config/react'
],
parserOptions: {
project: './tsconfig.json',
},
};
```