Eslint: allowDefaultProject

@iSentinel
Parsing error: C:/{redacted} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject. (eslint)
Parsing error: C:/{redacted} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject. (eslint)
Solution:
well i was thinking if it works fine from terminal then its a zed ide issue
Jump to solution
22 Replies
iSentinel
iSentinel2mo ago
whats the file is it one in the root
Elysian
ElysianOP2mo ago
Just a normal WCS file in src/shared/combat. This error occurs on basically every file, though Never happened on MacOS, started showing up when I moved to a Windows laptop
iSentinel
iSentinel2mo ago
did you change the default config at all or the tsconfig
Elysian
ElysianOP2mo ago
Nope, it's the exact same
iSentinel
iSentinel2mo ago
basically your tsconfig should only match folders in src/, not root folders (such as eslint.config.ts) -> this is a roblox-ts limitation
Elysian
ElysianOP2mo ago
Doesn't the tsconfig.build.json exclude them? Or I think that was the file, anyways
iSentinel
iSentinel2mo ago
in your case, they seem to be matching both
Elysian
ElysianOP2mo ago
Odd, any tips? Re-install Zed, re-clone repo, etc.?
iSentinel
iSentinel2mo ago
oh you have two tsconfigs you don't need two
iSentinel
iSentinel2mo ago
GitHub
GitHub - christopher-buss/roblox-ts-project-template: My personaliz...
My personalized template for starting roblox-ts projects. - christopher-buss/roblox-ts-project-template
iSentinel
iSentinel2mo ago
if you see here, i get away with just the one now
iSentinel
iSentinel2mo ago
GitHub
tsconfig/configs/roblox/tsconfig.json at main · christopher-buss/t...
TypeScript sharable config for both TS and roblox. Contribute to christopher-buss/tsconfig development by creating an account on GitHub.
iSentinel
iSentinel2mo ago
the settings are here
Elysian
ElysianOP2mo ago
Aha, no more .build tsconfig? Will give it a try tomorrow, PC is already off. Thanks for the help! Hopefully it works 🙏 If not, I'll try another code editor and see if the issue has to do with Zed
iSentinel
iSentinel2mo ago
yeah, i changed the config stuff around to not need it previously we had a tsconfig for roblox files only, and another for eslint which matched everything, but that's not needed now im not sure why your macos was fine you can also add
typescript: {
outOfProjectFiles: [],
},
typescript: {
outOfProjectFiles: [],
},
to your tsconfig
Elysian
ElysianOP2mo ago
Interesting
iSentinel
iSentinel2mo ago
which will remove the file list that are considered "not in project" which should just be ts files at the root but i would say its easier to just go the one
Elysian
ElysianOP2mo ago
Will keep it in mind in case plan a and b both fail 🤔 @iSentinel The issue seems to persist. but I do remember changing something! I had added gitignore: false to the eslint config It was because I kept receiving this error in the eslint language server logs:
Error: gitignore option is enabled but no .gitignore file was found in the current directory
Error: gitignore option is enabled but no .gitignore file was found in the current directory
I do have a .gitignore file in the root of the directory I think the issue is with Zed. This doesn't happen on Cursor
iSentinel
iSentinel2mo ago
i wonder if eslint is running from the wrong directory? do you get the errors in the terminal @Elysian
Elysian
ElysianOP2mo ago
Haven't tested it, but don't think so considering it works perfectly on Cursor and I had tried building and running the game on there and it worked just fine
Solution
iSentinel
iSentinel2mo ago
well i was thinking if it works fine from terminal then its a zed ide issue
Elysian
ElysianOP2mo ago
Yeah seems to be just Zed, thanks for the help regardless!

Did you find this page helpful?