From 74a398cf9bf85e7c64c85afc0a0d92d952d1fb99 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 14 Nov 2024 23:57:44 +0200 Subject: [PATCH] build: move forceConsistentCasingInFileNames under compilerOptions Try to fix the issue: --------------------- $ make check npm run check > snooker-scoreboard@0.1.0 check > svelte-check --tsconfig ./tsconfig.json --compiler-warnings 'a11y-no-static-element-interactions:ignore,a11y-no-noninteractive-element-interactions:ignore,a11y-click-events-have-key-events:ignore' ==================================== Loading svelte-check in workspace: /home/jani/src/groovescore Getting Svelte diagnostics... /home/jani/src/groovescore/tsconfig.json:7:3 Error: 'forceConsistentCasingInFileNames' should be set inside the 'compilerOptions' object of the config json file ==================================== svelte-check found 1 error and 0 warnings in 1 file make: *** [Makefile:23: check] Error 1 Problem: -------- This brings back all warnings ignored in package.json with: "check": "svelte-check --tsconfig ./tsconfig.json --compiler-warnings 'a11y-no-static-element-interactions:ignore,a11y-no-noninteractive-element-interactions:ignore,a11y-click-events-have-key-events:ignore'" --- tsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index c925bb8..1b8ace3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,11 @@ { "extends": "@tsconfig/svelte/tsconfig.json", - + "compilerOptions": { + "forceConsistentCasingInFileNames": true, + }, "include": ["src/**/*", "src/node_modules"], "exclude": ["node_modules/*", "__sapper__/*", "public/*"], - "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "strict": true, "noUnusedLocals": true,