diff --git a/eslint.config.js b/eslint.config.js index d16eb419..fbc683f1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -52,7 +52,7 @@ export default tseslint.config( languageOptions: { parserOptions: { projectService: { - allowDefaultProject: ["*.config.*s", "bin/*.js", "script/*.ts"], + allowDefaultProject: ["*.config.*s", "bin/*.js"], }, tsconfigRootDir: import.meta.dirname, }, diff --git a/script/__snapshots__/migrate-test-e2e.ts.snap b/script/__snapshots__/migrate-test-e2e.ts.snap index 3bcd2f67..d6a1a65f 100644 --- a/script/__snapshots__/migrate-test-e2e.ts.snap +++ b/script/__snapshots__/migrate-test-e2e.ts.snap @@ -174,7 +174,7 @@ exports[`expected file changes > eslint.config.js 1`] = ` languageOptions: { parserOptions: { - projectService: { -- allowDefaultProject: ["*.config.*s", "bin/*.js", "script/*.ts"], +- allowDefaultProject: ["*.config.*s", "bin/*.js"], - }, + projectService: { allowDefaultProject: ["*.config.*s"] }, tsconfigRootDir: import.meta.dirname, @@ -232,3 +232,15 @@ exports[`expected file changes > knip.json 1`] = ` + "project": ["src/**/*.ts!"] }" `; + +exports[`expected file changes > tsconfig.json 1`] = ` +"--- a/tsconfig.json ++++ b/tsconfig.json +@@ ... @@ + "strict": true, + "target": "ES2022" + }, +- "include": ["src", "script"] ++ "include": ["src"] + }" +`; diff --git a/script/migrate-test-e2e.ts b/script/migrate-test-e2e.ts index 56e9f3e6..ca3c77a8 100644 --- a/script/migrate-test-e2e.ts +++ b/script/migrate-test-e2e.ts @@ -12,6 +12,7 @@ const filesExpectedToBeChanged = [ ".prettierignore", "cspell.json", "eslint.config.js", + "tsconfig.json", ]; const filesThatMightBeChanged = new Set([ diff --git a/tsconfig.json b/tsconfig.json index 223cce10..1175f31f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ "strict": true, "target": "ES2022" }, - "include": ["src"] + "include": ["src", "script"] }