Skip to content

Instantly share code, notes, and snippets.

@tomma5o
Last active January 24, 2019 10:56
Show Gist options
  • Save tomma5o/dcac9bf85533db589196975e88aa5385 to your computer and use it in GitHub Desktop.
Save tomma5o/dcac9bf85533db589196975e88aa5385 to your computer and use it in GitHub Desktop.
jsconfig Starter for simple React projects
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "classic",
"baseUrl": "./app/",
"paths": {
// here not allowed more than one *
// specify index.js when use folder names in imports
"components/*": ["./components/*/index.js"],
"containers/*": ["./containers/*/index.js"],
"utils/*": ["./utils/*"],
},
},
// /**/* only accepted in include/exclude prop
"include": ["./app/**/*"],
"exclude": ["./node_modules"],
"compileOnSave": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment