Skip to content

Instantly share code, notes, and snippets.

@summivox
Last active December 5, 2017 17:34
Show Gist options
  • Save summivox/f06c79594a56b6c14c5df8a7e1efefbf to your computer and use it in GitHub Desktop.
Save summivox/f06c79594a56b6c14c5df8a7e1efefbf to your computer and use it in GitHub Desktop.
typescript
{
"compilerOptions": {
"outDir": "./lib",
"target": "es2017",
"module": "commonjs",
"declaration": true,
"strict": true,
"preserveConstEnums": true,
"sourceMap": true
},
"include": [
"./src/**/*.ts",
"./src/**/*.js"
],
"compileOnSave": true,
"typeAcquisition": {
"enable": true
}
}
{
"rules": {
"class-name": true,
"comment-format": [true,
"check-space"
],
"curly": [true, "ignore-same-line"],
"indent": [true,
"spaces"
],
"jsdoc-format": true,
"no-in-operator": false,
"no-inferrable-types": true,
"no-internal-module": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": [true, "ignore-template-strings", "ignore-jsdoc"],
"no-var-keyword": true,
"object-literal-shorthand": true,
"one-line": [true,
"check-open-brace",
"check-whitespace"
],
"prefer-const": true,
"semicolon": [true, "always", "ignore-bound-class-methods"],
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment