Víctor Yoalli

How to add a jsconfig.json

Adding a jsconfig.json file to your project allows the VSCode IDE to automatically configure itself to be more JavasScript-friendly and convenient for you.

To get better JavaScript code completion, debugging and formatting while using Visual Studio Code to work on your JavaScript projects, you need to create a jsconfig.json file for each project.

Just add a jsconfig.json to the root folder of your project.

json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "resources/js/*"
      ],
      "@Components/*": [
        "resources/js/Components/*"
      ]
    }
  },
  "exclude": [
    "node_modules",
    "public"
  ]
}

References

ESCRITOS DE VÍCTOR