Skip to content

Commit f906763

Browse files
feat: move --report-unused-disable-directives cli option to .eslintrc.cjs (#731)
<!-- 👋 Hi, thanks for sending a PR to create-typescript-app! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview I don't know this is intended, but generally forks include me preferred set in config file rather than cli options. thanks take a look the PR! --------- Co-authored-by: Josh Goldberg <[email protected]>
1 parent 990bc52 commit f906763

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ module.exports = {
134134
"regexp",
135135
"vitest",
136136
],
137+
reportUnusedDisableDirectives: true,
137138
root: true,
138139
rules: {
139140
// These off/less-strict-by-default rules work well for this repo and we like them on.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"format:write": "pnpm format --write",
2929
"initialize": "tsx ./src/bin/index.js --mode initialize",
3030
"initialize:test": "node script/initialize-test-e2e.js",
31-
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
31+
"lint": "eslint . .*js --max-warnings 0",
3232
"lint:knip": "knip",
3333
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
3434
"lint:package-json": "npmPkgJsonLint .",

src/steps/writing/creation/createESLintRC.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module.exports = {
148148
}
149149
"regexp",${options.excludeTests ? "" : `\n"vitest",`}
150150
],
151+
reportUnusedDisableDirectives: true,
151152
root: true,
152153
rules: {
153154
// These off/less-strict-by-default rules work well for this repo and we like them on.

0 commit comments

Comments
 (0)