Commit 4252609
authored
Improve eslint config (#1671)
* Consolidate and organize .eslintrc
Moves all deeply-nested `.eslintrc` override files into project root `.eslintrc`, as `"override"` entries. Also sorts the top-level keys in `.eslintrc`.
I like using `"overrides"` rather than putting override files in
directories for a couple of reasons:
* In some cases overrides don't map neatly to the directory structure
* It keeps everything in one place
This also introduces overrides for config files and scripts that are run
in Node rather than compiled by babel / run in the browser, which allows
us to remove the eslint configuration comments from those files.
* Don't array-wrap eslint rules with no options
Makes the configuration more readable1 parent 6dfd4ba commit 4252609
File tree
10 files changed
+264
-631
lines changed- src
- sagas
- test/unit
- sagas
10 files changed
+264
-631
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | 2 | | |
7 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments