Last active
August 26, 2016 02:43
-
-
Save parambirs/9b191fa15cf3dc92b2cae2821bdf8026 to your computer and use it in GitHub Desktop.
TypeScript init
This file contains hidden or 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
| { | |
| "compileOnSave": true, | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "commonjs", | |
| "noImplicitAny": true, | |
| "removeComments": true, | |
| "preserveConstEnums": true, | |
| "sourceMap": true, | |
| "outDir": "compiled", | |
| "noImplicitUseStrict": false | |
| }, | |
| "exclude": [ | |
| "node_modules", | |
| "node_modules.dev", | |
| "node_modules.production" | |
| ] | |
| } |
This file contains hidden or 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
| npm i typings -g | |
| npm i typescript tslint --save-dev | |
| typings init | |
| typings i --save env~node --global |
This file contains hidden or 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
| { | |
| "rules": { | |
| "class-name": true, | |
| "comment-format": [true, "check-space"], | |
| "curly": false, | |
| "eofline": true, | |
| "forin": true, | |
| "indent": [true, "spaces"], | |
| "label-position": true, | |
| "label-undefined": true, | |
| "max-line-length": [true, 140], | |
| "member-access": true, | |
| "member-ordering": [true, | |
| "public-before-private", | |
| "static-before-instance", | |
| "variables-before-functions" | |
| ], | |
| "no-arg": true, | |
| "no-bitwise": true, | |
| "no-console": [true, | |
| "debug", | |
| "info", | |
| "time", | |
| "timeEnd", | |
| "trace" | |
| ], | |
| "no-construct": true, | |
| "no-debugger": true, | |
| "no-duplicate-key": true, | |
| "no-duplicate-variable": true, | |
| "no-empty": true, | |
| "no-eval": true, | |
| "no-inferrable-types": true, | |
| "no-shadowed-variable": true, | |
| "no-string-literal": true, | |
| "no-switch-case-fall-through": true, | |
| "no-trailing-whitespace": true, | |
| "no-unused-expression": true, | |
| "no-unused-variable": true, | |
| "no-unreachable": true, | |
| "no-use-before-declare": true, | |
| "no-var-keyword": true, | |
| "object-literal-sort-keys": false, | |
| "one-line": [true, | |
| "check-open-brace", | |
| "check-catch", | |
| "check-else", | |
| "check-finally", | |
| "check-whitespace" | |
| ], | |
| "quotemark": [false, "single", "avoid-escape"], | |
| "radix": true, | |
| "semicolon": true, | |
| "trailing-comma": [false, { | |
| "singleline": "never", | |
| "multiline": "always" | |
| }], | |
| "triple-equals": [true, "allow-null-check"], | |
| "typedef-whitespace": [true, { | |
| "call-signature": "nospace", | |
| "index-signature": "nospace", | |
| "parameter": "nospace", | |
| "property-declaration": "nospace", | |
| "variable-declaration": "nospace" | |
| }], | |
| "variable-name": false, | |
| "whitespace": [true, | |
| "check-branch", | |
| "check-decl", | |
| "check-operator", | |
| "check-separator", | |
| "check-type" | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment