Skip to content

Instantly share code, notes, and snippets.

@aortbals
Created December 6, 2018 23:59
Show Gist options
  • Save aortbals/89e7b9695498fd2a153addfb3f9af5c4 to your computer and use it in GitHub Desktop.
Save aortbals/89e7b9695498fd2a153addfb3f9af5c4 to your computer and use it in GitHub Desktop.
create-react-app TypeScript configs
{
"compilerOptions": {
"target": "esnext",
"allowJs": true,
"skipLibCheck": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"noUnusedLocals": true,
"noUnusedParameters": true
},
"include": ["src"]
}
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-react", "tslint-config-prettier"],
"jsRules": {},
"rules": {
"quotemark": [true, "single", "jsx-double"],
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"no-console": {
"severity": "warning"
},
"object-literal-sort-keys": false,
"interface-name": false,
"no-unused-variable": true
},
"rulesDirectory": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment