Last active
April 5, 2020 09:13
-
-
Save kazuma1989/7019c3ce4ff1f3a1e8fd0af2d98175c8 to your computer and use it in GitHub Desktop.
よく使うprettierrc, tsconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"endOfLine": "lf", | |
"semi": false, | |
"singleQuote": true, | |
"trailingComma": "all" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
// Choose your target based on which browsers you'd like to support. | |
"target": "ES2017", | |
// Required: Use module="ESNext" so that TS won't compile/disallow any ESM syntax. | |
"module": "ESNext", | |
// Required for Preact type checks. | |
"moduleResolution": "Node", | |
// `import React` instead of `import * as React` | |
"allowSyntheticDefaultImports": true, | |
// <div /> => React.createElement("div") | |
"jsx": "react", | |
// Required: Map "/web_modules/*" imports back to their node_modules/ TS definition files. | |
"baseUrl": ".", | |
"paths": { | |
"/web_modules/*.js": ["node_modules/@types/*", "node_modules/*"] | |
}, | |
// Redirect output structure to a directory. | |
// The directory is defined in the package.json#scripts. | |
"noEmit": false, | |
// Generate source maps including their original sources. | |
"sourceMap": true, | |
"inlineSources": true, | |
// Useful type checks. | |
"strictNullChecks": true | |
}, | |
"include": ["src/**/*"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment