You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-18
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
7
7
---
8
8
9
-
> For now you can find `tslint` and `tsconfig` configurations, but I'm willing to add more tools and scripts in the future e.g. `jest`, `babel`, `eslint`, npm scripts etc.
9
+
> For now you can find `eslint`, `tslint` and `tsconfig` configurations, but I'm willing to add more tools and scripts in the future e.g. `jest`, `babel`, npm scripts etc.
10
10
11
-
> I'm open to suggestion on improvements like adding or changing the rules (especially for ESLint), please feel free to open an issue.
11
+
> I'm open to suggestion on improvements like adding or changing default rules so please feel free to open an issue.
12
12
13
13
---
14
14
@@ -34,13 +34,14 @@
34
34
35
35
## Installation
36
36
37
-
This package is distributed via npm and
38
-
should be installed as one of your project's `devDependencies`:
37
+
1. This package is distributed via npm and should be installed as `devDependencies`:
39
38
40
39
```
41
40
npm i -D react-redux-typescript-scripts
42
41
```
43
42
43
+
2. You should also install optional dependencies depending on
44
+
44
45
## Usage
45
46
46
47
You can find usage instructions for each tool in it's onw section below.
@@ -57,18 +58,18 @@ You can find usage instructions for each tool in it's onw section below.
57
58
```
58
59
59
60
### TSLint
60
-
> NOTE: This package will install all the necessary dependencies except `tslint`so please include it in your project dependencies.
61
+
> WARNING: When using this config you need to install `tslint`as dependency in your project.
61
62
62
-
Following configs are available to extend (you can use one or all by declaring an array in `extends` config property):
63
-
-`react-redux-typescript-scripts/tslint.json` - best default config - based on recommended tslint built-in config.
64
-
-`react-redux-typescript-scripts/tslint-react.json`- for react projects - based on `tslint-react`.
63
+
There are few configs available (you can use one or all by declaring an array in `extends` config property):
64
+
-`react-redux-typescript-scripts/tslint.json` - mandatory base config - based on recommended rules.
65
+
-`react-redux-typescript-scripts/tslint-react.json`- include react rules - based on `tslint-react`.
@@ -77,13 +78,18 @@ Following configs are available to extend (you can use one or all by declaring a
77
78
```
78
79
79
80
### ESLint
80
-
> NOTE: This package will install all the necessary dependencies for you except `eslint` so please include it in your project dependencies.
81
+
> WARNING: When using this config you need to install `eslint` as dependency in your project.
82
+
83
+
There are few configs available (you can use one or all by declaring an array in `extends` config property):
84
+
-`./node_modules/react-redux-typescript-scripts/eslint.json` - mandatory base config - based on recommended rules.
85
+
-`./node_modules/react-redux-typescript-scripts/eslint-prettier.json`- disable eslint formatting rules conflicting with prettier - based on `eslint-config-prettier`_(**WARNING:** Should be the last one in `extends` array)_.
@@ -92,15 +98,14 @@ Following configs are available to extend (you can use one or all by declaring a
92
98
```
93
99
94
100
#### create-react-app
95
-
This single change will fully integrate `@typescript-eslint`config with your `create-react-app`:
101
+
To fully integrate `@typescript-eslint` with your `create-react-app` add below snippet to your `.eslintrc` or `package.json` under the `eslintConfig` key:
0 commit comments