Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we introduce a jsconfig.json #246

Open
cogwizzle opened this issue Dec 22, 2023 · 0 comments
Open

Could we introduce a jsconfig.json #246

cogwizzle opened this issue Dec 22, 2023 · 0 comments

Comments

@cogwizzle
Copy link

cogwizzle commented Dec 22, 2023

Hey would it be ok if we introduced a jsonconfig.json? This would allow tsserver the LSP to better enforce typesafety in the code base. It basically allows your editor to spot errors more easily.

Here is a proposed example that of something I'd like to see in regards to the rules if we were to introduce this.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "src/*": ["./src/*","./test/*"],
    },
    "moduleResolution": "node",
    "checkJs": true,
    "target": "ESNext", // I think this might need to change.
    "module": "ESNext", // I think this might need to change.
    "strictNullChecks": true,
    "resolveJsonModule": true
  },
  "exclude": ["node_modules", "dist"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant