Commit 094b253
authored
feat: much more ESLint config configurability (#867)
## PR Checklist
- [x] Addresses an existing open issue: fixes #864; fixes #866
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md)
were taken
## Overview
Adds:
- `--exclude-lint-deprecation`
- `--exclude-lint-eslint`
- `--exclude-lint-jsdoc`
- `--exclude-lint-regex`
- `--exclude-lint-strict`
- `--exclude-lint-stylistic`
Assorted cleanups:
* Removes `eslint-config-prettier` since I believe none of the
recommended configs include rules impacted by it (yay!)
* Removes `eslint-plugin-import` as TypeScript's `"moduleResolution":
"NodeNext"` will report on a missing file extension in an import
* As of eslint-community/eslint-plugin-n#24 I
don't think `n/no-missing-import` is buggy enough to need to be disabled
* eslint-community/eslint-plugin-n#84 is still
in effect, but this template doesn't use `paths`.
* Removes the ESLint config comment now that most users are on a simpler
"common" config
* Finally add some high-level unit testing for `createESLintRC` to help
validate the changes1 parent cc0cbaf commit 094b253
File tree
18 files changed
+430
-268
lines changed- docs
- src
- create
- steps
- writing/creation
18 files changed
+430
-268
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | | - | |
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
147 | | - | |
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
| 147 | + | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments