Skip to content

Instantly share code, notes, and snippets.

@alexeden
Created June 14, 2018 03:57
Show Gist options
  • Select an option

  • Save alexeden/6d44b2f04c466d49e4fe1dbabd8815ed to your computer and use it in GitHub Desktop.

Select an option

Save alexeden/6d44b2f04c466d49e4fe1dbabd8815ed to your computer and use it in GitHub Desktop.
TSLint
{
"rulesDirectory": [
"node_modules/codelyzer",
"node_modules/rxjs-tslint"
],
"extends": "tslint:latest",
"rules": {
"align": [
true,
"parameters",
"statements",
"arguments"
],
"arrow-parens": [
true,
"ban-single-arg-parens"
],
"comment-format": [
true,
"check-space"
],
"curly": false,
"indent": [ true, "spaces" ],
"interface-name": [ true, "never-prefix" ],
"import-spacing": true,
"max-classes-per-file": false,
"max-line-length": false,
"member-access": [ true, "no-public" ],
"member-ordering": false,
"no-any": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [ true, 3 ],
"no-console": false,
"no-construct": true,
"no-duplicate-variable": true,
"no-implicit-dependencies": false,
"no-invalid-this": true,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-submodule-imports": false,
"no-trailing-whitespace": true,
"no-unused-expression": false,
"no-var-keyword": true,
"object-literal-key-quotes": [ false, "as-needed" ],
"object-literal-sort-keys": false,
"one-line": [ true, "check-open-brace", "check-whitespace" ],
"one-variable-per-declaration": true,
"ordered-imports": false,
"quotemark": [ true, "single", "jsx-double" ],
"semicolon": [
true,
"always",
"ignore-interfaces"
],
"trailing-comma": [
true,
{
"multiline": {
"arrays": "always",
"objects": "always",
"functions": "never",
"imports": "always",
"exports": "always",
"typeLiterals": "always"
},
"singleline": "never"
}
],
"triple-equals": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-module",
"check-operator",
"check-preblock",
"check-rest-spread",
"check-separator",
"check-type",
"check-typecast",
"check-type-operator"
],
"angular-whitespace": [
true,
"check-semicolon"
],
"banana-in-box": true,
"templates-no-negated-async": true,
"directive-selector": [
false,
"attribute",
"",
"camelCase"
],
"component-selector": [
false,
"element",
"",
"kebab-case"
],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"no-input-rename": true,
"no-output-rename": false,
"no-output-on-prefix": true,
"no-forward-ref": true,
"use-view-encapsulation": true,
"use-life-cycle-interface": true,
"contextual-life-cycle": true,
"trackBy-function": false,
"use-pipe-transform-interface": false,
"pipe-naming": [
true,
"camelCase",
""
],
"component-class-suffix": true,
"directive-class-suffix": true,
"pipe-impure": false,
"rxjs-collapse-imports": true,
"rxjs-pipeable-operators-only": true,
"rxjs-no-static-observable-methods": true,
"rxjs-proper-imports": true
}
}
{
"extends": "tslint:latest",
"rules": {
"align": [
true,
"parameters",
"statements",
"arguments"
],
"arrow-parens": [true, "ban-single-arg-parens"],
"comment-format": [
true,
"check-space"
],
"curly": false,
"indent": [
true,
"spaces"
],
"interface-name": [true, "never-prefix"],
"import-spacing": false,
"max-classes-per-file": false,
"max-line-length": false,
"member-access": [true, "no-public"],
"member-ordering": false,
"no-any": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true, 3],
"no-console": false,
"no-construct": true,
"no-duplicate-variable": true,
"no-implicit-dependencies": false,
"no-invalid-this": true,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-submodule-imports": false,
"no-trailing-whitespace": true,
"no-unused-expression": false,
"no-var-keyword": true,
"object-literal-key-quotes": [false, "as-needed"],
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"ordered-imports": false,
"quotemark": [
true,
"single",
"jsx-double"
],
"semicolon": [
true,
"always",
"ignore-interfaces"
],
"trailing-comma": [
true,
{
"multiline": {
"arrays": "always",
"objects": "always",
"functions": "never",
"imports": "always",
"exports": "always",
"typeLiterals": "always"
},
"singleline": "never"
}
],
"triple-equals": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-module",
"check-operator",
"check-preblock",
"check-rest-spread",
"check-separator",
"check-type",
"check-typecast",
"check-type-operator"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment