morphdom icon indicating copy to clipboard operation
morphdom copied to clipboard

Could we introduce a jsconfig.json

Open cogwizzle opened this issue 2 years ago • 0 comments

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"]
}

cogwizzle avatar Dec 22 '23 20:12 cogwizzle