Skip to content

Instantly share code, notes, and snippets.

@mcmire
Created December 18, 2018 02:36
Show Gist options
  • Save mcmire/e5e440793c771db3028dc52cc8b3e92a to your computer and use it in GitHub Desktop.
Save mcmire/e5e440793c771db3028dc52cc8b3e92a to your computer and use it in GitHub Desktop.
TypeScript configuration
{
...,
"dependencies": {
"typescript": "^3.2.2"
},
"devDependencies": {
"tslint": "^5.11.0",
"typescript-tslint-plugin": "^0.2.1"
}
}
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
"outDir": "./lib/",
"target": "es5",
"sourceMap": true,
"declaration": true,
"jsx": "preserve",
"lib": ["es2017", "dom"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"plugins": [
{ name: "typescript-tslint-plugin" }
]
},
"include": [
"src/scripts/**/*"
],
"exclude": [
".git",
"node_modules"
]
}
{
"extends": ["tslint:recommended"],
"rules": {
"arrow-parens": false,
"comment-format": false,
"interface-name": false,
"member-access": false,
"max-classes-per-file": false,
"no-var-requires": false,
"no-reference": false,
"trailing-comma": "never"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment