Skip to content

Added ESLint config section #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Issues can be funded by anyone and the money will be transparently distributed t
- [TypeScript](#typescript)
- [TSLib](#tslib)
- [TSLint](#tslint)
- [ESLint](#eslint)
- [Jest](#jest)
- [Style Guide](#style-guide)
- [Recipes](#recipes)
Expand Down Expand Up @@ -1588,6 +1589,31 @@ We have our own recommended config that you can easily add to your project thank

[⇧ back to top](#table-of-contents)

## ESLint
https://eslint.org/
https://typescript-eslint.io

> Installation
`npm i -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin`

We have our own recommended config that will automatically add a parser & plugin for TypeScript thanks to [`react-redux-typescript-scripts`](https://github.com/piotrwitek/react-redux-typescript-scripts) package.

#### .eslintrc
<details><summary><i>Click to expand</i></summary><p>

```tsx
{
"extends": ["./node_modules/react-redux-typescript-scripts/eslint.js"],
"rules": {
// you can further customize options here
}
}

```
</p></details>

[⇧ back to top](#table-of-contents)

## Jest
https://jestjs.io/

Expand Down
15 changes: 15 additions & 0 deletions README_SOURCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Issues can be funded by anyone and the money will be transparently distributed t
- [TypeScript](#typescript)
- [TSLib](#tslib)
- [TSLint](#tslint)
- [ESLint](#eslint)
- [Jest](#jest)
- [Style Guide](#style-guide)
- [Recipes](#recipes)
Expand Down Expand Up @@ -631,6 +632,20 @@ We have our own recommended config that you can easily add to your project thank

[⇧ back to top](#table-of-contents)

## ESLint
https://eslint.org/
https://typescript-eslint.io

> Installation
`npm i -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin`

We have our own recommended config that will automatically add a parser & plugin for TypeScript thanks to [`react-redux-typescript-scripts`](https://github.com/piotrwitek/react-redux-typescript-scripts) package.

#### .eslintrc
::expander='playground/.eslintrc'::

[⇧ back to top](#table-of-contents)

## Jest
https://jestjs.io/

Expand Down
6 changes: 6 additions & 0 deletions playground/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["./node_modules/react-redux-typescript-scripts/eslint.js"],
"rules": {
// you can further customize options here
}
}