Skip to content

Instantly share code, notes, and snippets.

@labocho
Last active September 2, 2021 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save labocho/0afa689d18dc5b2d434ec0ff9a6673bb to your computer and use it in GitHub Desktop.
Save labocho/0afa689d18dc5b2d434ec0ff9a6673bb to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node",
// import Foo from "foo" を書けるようにする
"allowSyntheticDefaultImports": true,
// import で絶対パス指定時に、webpack.config.js の resolve.modules で import はできるが、
// 型情報は取ってきてくれないので、ここでも指定する
"baseUrl": ".",
"paths": {
"*": ["node_modules/*", "app/javascript/*"],
},
"strictNullChecks": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment