Eslint: allowDefaultProject
@iSentinel
Solution:Jump to solution
well i was thinking if it works fine from terminal then its a zed ide issue
22 Replies
whats the file
is it one in the root
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
did you change the default config at all
or the tsconfig
Nope, it's the exact same
basically your tsconfig should only match folders in src/, not root folders (such as eslint.config.ts) -> this is a roblox-ts limitation
Doesn't the tsconfig.build.json exclude them?
Or I think that was the file, anyways
in your case, they seem to be matching both
Odd, any tips? Re-install Zed, re-clone repo, etc.?
oh you have two
tsconfigs
you don't need two
GitHub
GitHub - christopher-buss/roblox-ts-project-template: My personaliz...
My personalized template for starting roblox-ts projects. - christopher-buss/roblox-ts-project-template
if you see here, i get away with just the one now
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.
the settings are here
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
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
to your tsconfig
Interesting
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
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:
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
i wonder if eslint is running from the wrong directory?
do you get the errors in the terminal @Elysian
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
well i was thinking if it works fine from terminal then its a zed ide issue
Yeah seems to be just Zed, thanks for the help regardless!