Skip to content

Instantly share code, notes, and snippets.

@sajeetharan
Created October 26, 2017 04:33
Show Gist options
  • Save sajeetharan/c3900404fb4bcf70a6650df6b58494eb to your computer and use it in GitHub Desktop.
Save sajeetharan/c3900404fb4bcf70a6650df6b58494eb to your computer and use it in GitHub Desktop.
{
"extends": [
"tslint:recommended"
],
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"trailing-comma": [false, {"multiline": "always", "singleline": "never"}],
"interface-name": [false, "always-prefix"],
"component-class-suffix": [true, "Component", "Modal"],
"component-selector": [true, "element", [], "kebab-case"],
"directive-class-suffix": true,
"directive-selector": [true, "attribute", "camelCase"],
"import-destructuring-spacing": true,
"invoke-injectable": true,
"no-attribute-parameter-decorator": true,
"no-output-rename": true,
"banana-in-box": true,
"no-access-missing-member": true,
"pipe-naming": [true, "camelCase"],
"templates-use-public": true,
"use-host-property-decorator": true,
"use-input-property-decorator": true,
"use-life-cycle-interface": true,
"use-output-property-decorator": true,
"use-pipe-transform-interface": true,
"ordered-imports": false,
"member-access": false,
"curly": true,
"max-classes-per-file": [true, 10],
"eofline": false,
"indent": [
true,
"tabs",
4
],
"label-position": true,
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-string-throw": true,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-shadowed-variable": true,
"no-empty-interface": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"arrow-parens": true,
"class-name": true,
"no-irregular-whitespace": true,
"max-line-length": [
true,
160
],
"object-literal-sort-keys": false,
"cyclomatic-complexity": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
"always"
],
"triple-equals": true,
"typedef": [
true,
"call-signature",
"member-variable-declaration",
"parameter",
"arrow-parameter"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"allow-leading-underscore",
"ban-keywords",
"check-format"
],
"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