@thejohnfreeman/loadable
Version:
Like react-loadable, but better.
41 lines (40 loc) • 1.39 kB
JSON
// http://www.typescriptlang.org/docs/handbook/compiler-options.html
{
"compilerOptions": {
// Let us import from modules with no default import.
"allowSyntheticDefaultImports": true,
// Let us use path aliases.
"baseUrl": "./",
// https://medium.com/cameron-nokes/the-30-second-guide-to-publishing-a-typescript-package-to-npm-89d93ff7bccd
// https://hackernoon.com/building-and-publishing-a-module-with-typescript-and-rollup-js-faa778c85396
"declaration": true,
"declarationDir": "dist",
// Let us use yield*.
"downlevelIteration": true,
// Required for ts-jest.
// https://github.com/kulshekhar/ts-jest/issues/258
"esModuleInterop": true,
// Let us use fancy MobX decorators, e.g. @observable.
"experimentalDecorators": true,
// Compile JSX too.
"jsx": "react",
// Declare global variables from ES2017 and the DOM.
"lib": ["es2017", "dom"],
// Resolve dependencies like Node.js.
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": true,
// Emit separate source maps.
"sourceMap": true,
// Suppress noImplicitAny errors when indexing.
"suppressImplicitAnyIndexErrors": true,
// Enable a group of strictness checks.
"strict": true,
// Generate ES5.
"target": "es5"
},
"exclude": [
"node_modules"
]
}