Skip to content

Commit

Permalink
feat(preset): add preset for cra projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Nov 27, 2019
1 parent f30d9ef commit 4a644c0
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 30 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@

- [eslint-config-jsdoc-strict](https://www.npmjs.com/package/eslint-config-jsdoc)
- [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier)
- [eslint-config-react-app](https://www.npmjs.com/package/eslint-config-react-app)
- [eslint-config-standard](https://www.npmjs.com/package/eslint-config-standard)
- [eslint-plugin-array-func](https://www.npmjs.com/package/eslint-plugin-array-func)
- [eslint-plugin-eslint-comments](https://www.npmjs.com/package/eslint-plugin-eslint-comments)
- [eslint-plugin-flowtype](https://www.npmjs.com/package/eslint-plugin-flowtype)
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
- [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc)
- [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y)
- [eslint-plugin-node](https://www.npmjs.com/package/eslint-plugin-node)
- [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier)
- [eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise)
- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
- [eslint-plugin-security](https://www.npmjs.com/package/eslint-plugin-security)
- [eslint-plugin-sonarjs](https://www.npmjs.com/package/eslint-plugin-sonarjs)
- [eslint-plugin-standard](https://www.npmjs.com/package/eslint-plugin-standard)
Expand Down Expand Up @@ -56,6 +61,19 @@ Then add the following configuration to your project's [`package.json`](https://
}
```

### CRA projects
```
npm i -D eslint @eclass/eslint-config eslint-plugin-{flowtype,import,jsx-a11y,node,prettier,promise,react,standard} @typescript-eslint/{parser,eslint-plugin}
```

Then add the following configuration to your project's [`package.json`](https://docs.npmjs.com/files/package.json).

```json
"eslintConfig": {
"extends": "@eclass/eslint-config/react-app"
}
```

## License

[MIT](https://tldrlegal.com/license/mit-license)
Loading

0 comments on commit 4a644c0

Please sign in to comment.