eslint-config-precure
Version:
ESLint shareable config for precure
87 lines (59 loc) • 2.83 kB
Markdown
# eslint-config-precure
[](https://travis-ci.org/akameco/eslint-config-precure)
[](https://github.com/prettier/prettier)
[](https://www.npmjs.com/package/eslint-config-precure)
[](#contributors)
> ESLint shareable config for me
## Features
- prettier
- React
- TypeScript
- flowtype (maintenance mode)
## Install
```
$ yarn add --dev eslint eslint-config-precure
```
```
$ npm install --save-dev eslint eslint-config-precure
```
## Usage
.eslintrc
```json
{
"extends": "precure"
}
```
### TypeScript
```json
{
"extends": ["precure", "precure/typescript"]
}
```
### Jest
```json
{
"extends": ["precure", "precure/jest"]
}
```
## Auto Config
if you use `typescript`, enable [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
if you use `jest`, enable [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)
if you use `react`, enable [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)
if you use `flow-bin`, enable [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype)
```json
{
"extends": "precure/auto"
}
```
## Contributors
Thanks goes to these wonderful people
([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
<table><tr><td align="center"><a href="http://akameco.github.io"><img src="https://avatars2.githubusercontent.com/u/4002137?v=4" width="100px;" alt="akameco"/><br /><sub><b>akameco</b></sub></a><br /><a href="https://github.com/akameco/eslint-config-precure/commits?author=akameco" title="Code">💻</a> <a href="https://github.com/akameco/eslint-config-precure/commits?author=akameco" title="Documentation">📖</a> <a href="https://github.com/akameco/eslint-config-precure/commits?author=akameco" title="Tests">⚠️</a> <a href="#infra-akameco" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td><td align="center"><a href="https://bsky.moe"><img src="https://avatars3.githubusercontent.com/u/38746192?v=4" width="100px;" alt="bsky"/><br /><sub><b>bsky</b></sub></a><br /><a href="https://github.com/akameco/eslint-config-precure/commits?author=imbsky" title="Code">💻</a></td></tr></table>
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the
[all-contributors](https://github.com/kentcdodds/all-contributors)
specification. Contributions of any kind welcome!
## License
MIT © [akameco](http://akameco.github.io)