public-gateway-cacher/tslint.json

325 lines
7.3 KiB
JSON
Raw Normal View History

2019-11-29 02:20:50 +00:00
{
"extends": [
"tslint:recommended",
"rxjs-tslint-rules"
],
2020-07-10 04:53:52 +00:00
"linterOptions": {
"exclude": [
"**/*-routing.module.ts",
"src/polyfills.ts",
"src/test.ts",
"**/*.po.ts"
]
},
2019-11-29 02:20:50 +00:00
"rules": {
2020-07-10 04:53:52 +00:00
"align": {
"options": [
"parameters",
"statements"
]
},
2019-11-29 02:20:50 +00:00
"array-type": false,
"arrow-parens": false,
2020-07-10 04:53:52 +00:00
"arrow-return-shorthand": [
true,
"multiline"
],
"ban-types": [
true,
[
"Object",
"Use {} instead."
],
[
"String"
]
],
"callable-types": true,
"component-class-suffix": true,
"component-max-inline-declarations": true,
"component-selector": [
true,
"element",
"app",
"kebab-case"
],
"contextual-decorator": false,
"contextual-lifecycle": true,
"curly": true,
"cyclomatic-complexity": [
true,
20
],
2019-11-29 02:20:50 +00:00
"deprecation": {
"severity": "warning"
},
"directive-class-suffix": true,
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
2020-07-10 04:53:52 +00:00
"encoding": true,
"eofline": true,
2019-11-29 02:20:50 +00:00
"import-blacklist": [
true,
"rxjs/Rx"
],
2020-07-10 04:53:52 +00:00
"import-destructuring-spacing": true,
"import-spacing": true,
"increment-decrement": [
true,
"allow-post"
],
"indent": {
"options": [
"spaces"
]
},
2019-11-29 02:20:50 +00:00
"interface-name": false,
"max-classes-per-file": false,
2020-07-10 04:53:52 +00:00
"max-file-line-count": [
true,
400
],
2019-11-29 02:20:50 +00:00
"max-line-length": [
true,
{
2020-07-10 04:53:52 +00:00
"ignore-pattern": "^import |^export {(.*?)}|class [a-zA-Z]+ implements |// ",
"limit": 140
2019-11-29 02:20:50 +00:00
}
],
"member-access": false,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"private-static-field",
"public-instance-field",
"private-instance-field",
"public-constructor",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method",
"public-static-method",
"protected-static-method",
"private-static-method"
]
}
],
2020-07-10 04:53:52 +00:00
"newline-before-return": false,
"no-any": [
true,
{
"ignore-rest-args": true
}
],
"no-arg": true,
"no-attribute-decorator": true,
"no-collapsible-if": true,
"no-conflicting-lifecycle": true,
2019-11-29 02:20:50 +00:00
"no-consecutive-blank-lines": [
true,
1
],
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
2020-07-10 04:53:52 +00:00
"no-default-export": true,
"no-default-import": true,
"no-duplicate-imports": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
2019-11-29 02:20:50 +00:00
"no-empty": [
true,
"allow-empty-functions"
],
2020-07-10 04:53:52 +00:00
"no-for-in-array": true,
"no-forward-ref": true,
"no-host-metadata-property": true,
"no-implicit-dependencies": [
2020-07-10 05:24:52 +00:00
false,
2020-07-10 04:53:52 +00:00
"dev"
2019-11-29 02:20:50 +00:00
],
2020-07-10 04:53:52 +00:00
"no-import-side-effect": [
2019-11-29 02:20:50 +00:00
true,
2020-07-10 04:53:52 +00:00
{
"ignore-module": "(hammerjs|core-js|zone.js)"
}
2019-11-29 02:20:50 +00:00
],
2020-07-10 04:53:52 +00:00
"no-inferrable-types": [
2019-11-29 02:20:50 +00:00
true,
2020-07-10 04:53:52 +00:00
"ignore-params"
2019-11-29 02:20:50 +00:00
],
"no-input-rename": true,
"no-inputs-metadata-property": true,
2020-07-10 04:53:52 +00:00
"no-invalid-template-strings": true,
"no-invalid-this": [
true,
"check-function-in-method"
],
"no-lifecycle-call": true,
"no-misused-new": true,
"no-non-null-assertion": true,
2019-11-29 02:20:50 +00:00
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
2020-07-10 04:53:52 +00:00
"no-pipe-impure": true,
"no-queries-metadata-property": true,
"no-redundant-jsdoc": true,
"no-reference": true,
"no-require-imports": true,
"no-return-await": true,
"no-return-undefined": true,
"no-static-this": true,
"no-switch-case-fall-through": true,
"no-tautology-expression": true,
"no-this-assignment": true,
"no-trailing-whitespace": true,
"no-unbound-method": true,
"no-unnecessary-callback-wrapper": true,
2019-11-29 02:20:50 +00:00
"no-unnecessary-class": [
true,
"allow-constructor-only",
"allow-static-only",
"allow-empty-class"
],
2020-07-10 04:53:52 +00:00
"no-unnecessary-initializer": true,
"no-unnecessary-type-assertion": true,
"no-unsafe-finally": true,
2019-11-29 02:20:50 +00:00
"no-unused": true,
2020-07-10 04:53:52 +00:00
"no-unused-css": true,
"no-var-keyword": true,
"no-var-requires": false,
"object-literal-key-quotes": [
2019-11-29 02:20:50 +00:00
true,
2020-07-10 04:53:52 +00:00
"as-needed"
2019-11-29 02:20:50 +00:00
],
2020-07-10 04:53:52 +00:00
"object-literal-sort-keys": false,
"ordered-imports": false,
"origin-ordered-imports": [
true
],
"prefer-const": true,
2019-11-29 02:20:50 +00:00
"prefer-inline-decorator": false,
2020-07-10 04:53:52 +00:00
"prefer-output-readonly": true,
"prefer-readonly": true,
"prefer-template": true,
"quotemark": [
true,
"single"
],
"radix": false,
"restrict-plus-operands": true,
"rx-subject-restrictions": true,
"rxjs-no-compat": true,
"rxjs-no-internal": true,
"semicolon": {
"options": [
"always"
]
},
2019-11-29 02:20:50 +00:00
"space-before-function-paren": [
true,
{
"anonymous": "never",
"asyncArrow": "always",
2020-07-10 04:53:52 +00:00
"constructor": "never",
2019-11-29 02:20:50 +00:00
"method": "never",
2020-07-10 04:53:52 +00:00
"named": "never"
2019-11-29 02:20:50 +00:00
}
],
2020-07-10 04:53:52 +00:00
"space-within-parens": true,
"template-banana-in-box": true,
"template-conditional-complexity": true,
"template-no-call-expression": true,
"template-no-negated-async": true,
"template-use-track-by-function": true,
"trailing-comma": [
2019-11-29 02:20:50 +00:00
true,
{
2020-07-10 04:53:52 +00:00
"esSpecCompliant": true,
"multiline": {
"arrays": "ignore",
"functions": "never",
"objects": "ignore",
"typeLiterals": "ignore"
}
2019-11-29 02:20:50 +00:00
}
],
2020-07-10 04:53:52 +00:00
"triple-equals": [
2019-11-29 02:20:50 +00:00
true,
2020-07-10 04:53:52 +00:00
"allow-null-check"
2019-11-29 02:20:50 +00:00
],
2020-07-10 04:53:52 +00:00
"typedef": [
2019-11-29 02:20:50 +00:00
true,
2020-07-10 04:53:52 +00:00
"call-signature",
"property-declaration",
"object-destructuring",
"arrow-call-signature"
2019-11-29 02:20:50 +00:00
],
2020-07-10 04:53:52 +00:00
"typedef-whitespace": {
"options": [
{
"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"
}
]
},
2019-11-29 02:20:50 +00:00
"unnecessary-else": [
true,
{
"allow-else-if": true
}
],
2020-07-10 04:53:52 +00:00
"use-component-view-encapsulation": true,
"use-isnan": true,
"use-lifecycle-interface": true,
"use-pipe-decorator": true,
"use-pipe-transform-interface": true,
2019-11-29 02:20:50 +00:00
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
},
2020-07-10 04:53:52 +00:00
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
2019-11-29 02:20:50 +00:00
},
"rulesDirectory": [
"codelyzer",
"node_modules/tslint-origin-ordered-imports-rule/dist",
"node_modules/tslint-rxjs-subject-restrictions-rule/dist",
"node_modules/tslint-consistent-codestyle/rules"
2020-07-10 04:53:52 +00:00
]
2019-11-29 02:20:50 +00:00
}