Skip to content

Instantly share code, notes, and snippets.

@SaurabhLpRocks
Created September 15, 2019 09:56
Show Gist options
  • Select an option

  • Save SaurabhLpRocks/6c4dbfd08bc4c3e253e6dee662085250 to your computer and use it in GitHub Desktop.

Select an option

Save SaurabhLpRocks/6c4dbfd08bc4c3e253e6dee662085250 to your computer and use it in GitHub Desktop.
{
"extends": ["tslint-consistent-codestyle", "tslint-plugin-prettier", "tslint-config-prettier"],
"rules": {
"prettier": true,
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
},
"component-class-suffix": true,
"contextual-lifecycle": true,
"directive-class-suffix": true,
"directive-selector": [true, "attribute", "app", "camelCase"],
"component-selector": [true, "element", "app", "kebab-case"],
"import-blacklist": [true, "rxjs/Rx"],
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [true, 140],
"member-access": false,
"member-ordering": [
true,
{
"order": ["static-field", "instance-field", "static-method", "instance-method"]
}
],
"no-consecutive-blank-lines": false,
"no-console": true,
"no-empty": false,
"no-inferrable-types": [true, "ignore-params"],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-switch-case-fall-through": true,
"no-use-before-declare": true,
"no-var-requires": false,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": false,
"quotemark": [true, "single"],
"trailing-comma": false,
"no-conflicting-lifecycle": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-inputs-metadata-property": true,
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"newline-before-return": true,
"no-conditional-assignment": false,
"prefer-object-spread": true,
"prefer-template": true,
"only-arrow-functions": true,
"object-literal-shorthand": true,
"ordered-imports": [true, { "import-sources-order": "lowercase-last", "named-imports-order": "lowercase-first" }],
"early-exit": true,
"cyclomatic-complexity": [true, 15],
"no-collapsible-if": true,
"no-unnecessary-else": true
},
"rulesDirectory": ["codelyzer"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment