Skip to content

Instantly share code, notes, and snippets.

@samwx
Created September 29, 2017 18:47
Show Gist options
  • Save samwx/e2ac14b3b1e98ffef339e372e174fdac to your computer and use it in GitHub Desktop.
Save samwx/e2ac14b3b1e98ffef339e372e174fdac to your computer and use it in GitHub Desktop.
tslint suggestion
{
"rules": {
"class-name": true,
"comment-format": [
true
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"label-position": true,
"label-undefined": true,
"member-access": false,
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"constructor"
],
"alphabetize": false
}
],
"no-arg": true,
"no-bitwise": true,
"no-console": false,
"no-construct": true,
"no-consecutive-blank-lines": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": false,
"no-inferrable-types": false,
"no-shadowed-variable": false,
"no-string-literal": false,
"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,
"no-empty-interface": true,
"no-var-requires": true,
"no-null-keyword": true,
"no-default-export": true,
"no-require-imports": true,
"no-unnecessary-callback-wrapper": true,
"prefer-conditional-expression": true,
"arrow-return-shorthand": true,
"prefer-object-spread": true,
"use-isnan": true,
"only-arrow-functions": true,
"promise-function-async": true,
"object-literal-sort-keys": false,
"newline-before-return": true,
"import-spacing": true,
"new-parens": true,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"radix": true,
"semicolon": [
true,
"always"
],
"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"
}
],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-trailing-underscore", "allow-pascal-case"],
"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