#How do you exclude a folder from next build?

11 messages · Page 1 of 1 (latest)

tidal fulcrum
#
foo/
  problem-file.ts # causes type error
src/
  ..

Linting and checking validity of types.
Failed to compile.

I'd like to just completely ignore the foo/ folder from any checks during next build
Adding "ignorePatterns": ["foo"] to .eslintrc does not seem to have any effect although this seems to be the suggested approach that i've found.

lavish moatBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

rocky nebula
#

You can add "rootDir": "src" [Replace "src" with the only folder you want it to read]

#

It's "src" folder in your case

#

It's gonna exclude all folders except src

#

In tsconfig.json

#

Or you can also add your folder in "exclude"

tidal fulcrum
#

i had some input that seems to help...
by removing the tsconfig compilerOptions "noUnusedLocals": true, i can swap to an eslint rule such as no-unused-vars, and the ignorePattern now works

rocky nebula
#

Great

#

Does it work now?