Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darwintantuco/eslint-config
My personal eslint config
https://github.com/darwintantuco/eslint-config
eslint eslint-config
Last synced: 18 days ago
JSON representation
My personal eslint config
- Host: GitHub
- URL: https://github.com/darwintantuco/eslint-config
- Owner: darwintantuco
- License: mit
- Created: 2019-07-17T12:33:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-10T09:20:49.000Z (almost 4 years ago)
- Last Synced: 2024-10-09T19:02:26.871Z (30 days ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config
![Node.js CI](https://github.com/darwintantuco/eslint-config/workflows/Node.js%20CI/badge.svg)
My personal eslint config
## Peer Dependencies
- typescript
- eslint
- @typescript-eslint/parser
- @typescript-eslint/eslint-plugin
- eslint-plugin-react
- eslint-plugin-jsx-a11y
- eslint-config-prettier## Installation
### npm
```
npm install @darwintantuco/eslint-config \
typescript \
eslint \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-plugin-react \
eslint-plugin-jsx-a11y \
eslint-config-prettier --save-dev
```### yarn
```
yarn add @darwintantuco/eslint-config \
typescript \
eslint \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-plugin-react \
eslint-plugin-jsx-a11y \
eslint-config-prettier --dev
```## Usage
Update `.eslintrc.js`
```js
// .eslintrc.js
module.exports = {
extends: ['@darwintantuco/eslint-config'],
}
```Or add eslint config in `package.json`
```json
{
"eslintConfig": { "extends": ["@darwintantuco/eslint-config"] },
"scripts": {
"lint:js": "eslint 'js/**/*.{js,jsx,ts,tsx}'"
}
}
```## License
MIT