add tsconfig to template
Summary: When opening a freshly generated plugin in VScode the IDE would be full of errors, even though it can bundle correctly thanks to the defaults used by bundle. This is fixed by diff by correctly setting up a tsconfig. Reviewed By: jknoxville Differential Revision: D21523817 fbshipit-source-id: 8f6b58fbfb704460ddb5b845ddfb137b28d37187
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47f72e3332
commit
8d6ad59c52
14
desktop/pkg/templates/plugin/tsconfig.json.template
Normal file
14
desktop/pkg/templates/plugin/tsconfig.json.template
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2017",
|
||||
"module": "ES6",
|
||||
"jsx": "react",
|
||||
"sourceMap": true,
|
||||
"noEmit": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["src/index.tsx"]
|
||||
}
|
||||
Reference in New Issue
Block a user