Skip to content

Commit

Permalink
build: move forceConsistentCasingInFileNames under compilerOptions
Browse files Browse the repository at this point in the history
Try to fix the issue:
---------------------

$ make check
npm run check

> [email protected] 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'"
  • Loading branch information
jnikula committed Nov 14, 2024
1 parent 8762db1 commit 74a398c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 74a398c

Please sign in to comment.