Skip to content

Instantly share code, notes, and snippets.

@phucnh
Created May 15, 2016 07:09
Show Gist options
  • Select an option

  • Save phucnh/8e9a048de839d1a86f22bc9544d276e2 to your computer and use it in GitHub Desktop.

Select an option

Save phucnh/8e9a048de839d1a86f22bc9544d276e2 to your computer and use it in GitHub Desktop.
typescript coding style configurations
{
"rules": {
"class-name": true,
"comment-format": [false,
"check-space",
"check-lowercase"
],
"curly": true,
"eofline": false,
"forin": true,
"indent": [true, 4],
"interface-name": false,
"jsdoc-format": true,
"label-position": true,
"label-undefined": true,
"max-line-length": [false, 140],
"no-any": false,
"no-arg": true,
"no-bitwise": true,
"no-console": [false,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-consecutive-blank-lines": false,
"no-construct": true,
"no-debugger": false,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-string-literal": false,
"no-trailing-whitespace": true,
"no-unreachable": true,
"no-unused-expression": false,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-requires": true,
"one-line": [true,
"check-catch",
"check-else",
"check-open-brace",
"check-whitespace"
],
"quotemark": [false, "double"],
"radix": false,
"semicolon": true,
"triple-equals": [true, "allow-null-check"],
"typedef": [false,
"callSignature",
"catchClause",
"indexSignature",
"parameter",
"propertySignature",
"variableDeclarator"
],
"typedef-whitespace": [false,
["callSignature", "noSpace"],
["catchClause", "noSpace"],
["indexSignature", "space"]
],
"use-strict": [true,
"check-module",
"check-function"
],
"variable-name": false,
"whitespace": [false,
"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