vscode-appcenter/tslint.json

316 строки
9.7 KiB
JSON

{
"linterOptions": {
"exclude": [
"src/api/appcenter/generated"
]
},
"rules": {
"insecure-random": true,
"no-banned-terms": true,
"no-cookies": true,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-eval": true,
"no-exec-script": true,
"no-function-constructor-with-string-args": true,
"no-http-string": [
true,
"http://www.example.com/?.*",
"http://www.examples.com/?.*"
],
"no-inner-html": true,
"no-octal-literal": true,
"no-reserved-keywords": false,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"non-literal-require": false,
"possible-timing-attack": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": true,
"await-promise": [
true,
"Thenable" // changed
],
"forin": true,
"jquery-deferred-must-complete": true,
"label-position": true,
"match-default-export-name": false,
"mocha-avoid-only": false, //changed
"mocha-no-side-effect-code": false, //changed
"no-any": false,
"no-arg": true,
"no-backbone-get-set-outside-model": false,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [
false,
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"no-constant-condition": true,
"no-control-regex": true,
"no-debugger": true,
"no-duplicate-case": false,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-floating-promises": false,
"no-for-in-array": true,
"no-import-side-effect": true,
"no-increment-decrement": false,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-jquery-raw-elements": true,
"no-misused-new": true,
"no-non-null-assertion": true,
"no-reference-import": false,
"no-regex-spaces": true,
"no-sparse-arrays": true,
"no-stateless-class": false,
"no-string-literal": false,
"no-string-throw": true,
"no-unnecessary-bind": true,
"no-unnecessary-callback-wrapper": false,
"no-unnecessary-initializer": true,
"no-unnecessary-override": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": false,
"no-use-before-declare": false,
"no-with-statement": true,
"promise-function-async": false,
"promise-must-complete": false,
"radix": true,
"react-this-binding-issue": true,
"react-unused-props-and-state": true,
"restrict-plus-operands": false,
"strict-boolean-expressions": [
false,
"allow-string", // changed
"allow-undefined-union", // changed
"allow-mix" // changed
],
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"use-isnan": true,
"use-named-parameter": true,
"valid-typeof": false,
"adjacent-overload-signatures": true,
"array-type": [
true,
"array"
],
"arrow-parens": false,
"callable-types": false,
"chai-prefer-contains-to-index-of": true,
"chai-vague-errors": true,
"class-name": true,
"comment-format": true,
"completed-docs": [
false, // changed
"classes"
],
"export-name": false,
"function-name": false,
"import-name": false, // changed
"interface-name": false,
"jsdoc-format": true,
"max-classes-per-file": [
true,
6 //changed
],
"max-file-line-count": true,
"max-func-body-length": [
true,
180,
{
"ignore-parameters-to-function-regex": "describe"
}
],
"max-line-length": [
false, // changed
140
],
"member-access": true,
"member-ordering": [
false,
{
"order": "fields-first"
}
],
"missing-jsdoc": false, // changed
"mocha-unneeded-done": true,
"new-parens": true,
"no-construct": true,
"no-default-export": false,
"no-empty-interface": true,
"no-for-in": true,
"no-function-expression": false,
"no-inferrable-types": false,
"no-multiline-string": false,
"no-null-keyword": false,
"no-parameter-properties": false,
"no-relative-imports": false, // changed
"no-require-imports": false,
"no-shadowed-variable": false,
"no-suspicious-comment": false,
"no-typeof-undefined": false,
"no-unnecessary-field-initialization": true,
"no-unnecessary-local-variable": false,
"no-unnecessary-qualifier": true,
"no-unsupported-browser-code": true,
"no-useless-files": false,
"no-var-keyword": true,
"no-var-requires": true,
"no-var-self": false,
"no-void-expression": [
false,
"ignore-arrow-function-shorthand" // changed
],
"object-literal-sort-keys": false,
"one-variable-per-declaration": true,
"only-arrow-functions": false,
"prefer-array-literal": true,
"prefer-const": true,
"prefer-for-of": false,
"prefer-method-signature": true,
"prefer-template": false,
"return-undefined": false,
"typedef": [
false,
"call-signature",
"arrow-call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"underscore-consistent-invocation": true,
"unified-signatures": true,
"variable-name": [ // changed
false,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"react-a11y-anchors": true,
"react-a11y-aria-unsupported-elements": true,
"react-a11y-event-has-role": true,
"react-a11y-image-button-has-alt": true,
"react-a11y-img-has-alt": true,
"react-a11y-lang": true,
"react-a11y-meta": true,
"react-a11y-props": true,
"react-a11y-proptypes": true,
"react-a11y-role": true,
"react-a11y-role-has-required-aria-props": true,
"react-a11y-role-supports-aria-props": true,
"react-a11y-tabindex-no-positive": true,
"react-a11y-titles": true,
"align": [
false,
"parameters",
"arguments",
"statements"
],
"curly": true,
"eofline": true,
"import-spacing": true,
"indent": [
true,
"spaces"
],
"linebreak-style": false, // changed
"newline-before-return": false, // changed
"no-consecutive-blank-lines": true,
"no-empty-line-after-opening-brace": false,
"no-single-line-block-comment": false, // changed
"no-trailing-whitespace": true,
"no-unnecessary-semicolons": true,
"object-literal-key-quotes": [
true,
"as-needed"
],
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
false, // changed
"single"
],
"react-tsx-curly-spacing": true,
"semicolon": [
true,
"always"
],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "never"
}
],
"typedef-whitespace": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"ban": false,
"ban-types": true,
"cyclomatic-complexity": false, //changed
"file-header": false,
"import-blacklist": false,
"interface-over-type-literal": false,
"no-angle-bracket-type-assertion": false,
"no-inferred-empty-object-type": false,
"no-internal-module": false,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-namespace": false,
"no-reference": false,
"no-unexternalized-strings": [ // changed
false,
{
"signatures": [
"localize",
"nls.localize"
],
"keyIndex": 0,
"messageIndex": 1
}
],
"object-literal-shorthand": false,
"prefer-type-cast": false,
"space-before-function-paren": false,
"missing-optional-annotation": false,
"no-duplicate-parameter-names": false,
"no-empty-interfaces": false,
"no-missing-visibility-modifiers": false,
"no-multiple-var-decl": false,
"no-switch-case-fall-through": false,
"typeof-compare": false
},
"rulesDirectory": "node_modules/tslint-microsoft-contrib/"
}