arcade-machine/tslint.json

123 строки
4.5 KiB
JSON

{
"extends": "tslint-microsoft-contrib",
"rulesDirectory": [
"node_modules/tslint-microsoft-contrib",
"node_modules/codelyzer"
],
"rules": {
// Codelyzer
"directive-selector": [true, "attribute", "arc", "camelCase"],
"component-selector": [true, "element", "arc", "kebab-case"],
"pipe-naming": [true, "camelCase", "arc"],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-attribute-parameter-decorator": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true,
"import-destructuring-spacing": true,
"templates-use-public": true,
"no-access-missing-member": false,
"invoke-injectable": true,
"no-unused-css": true,
"pipe-impure": true,
"no-submodule-imports": false,
// Prettier-incompatible or prettier-handled rules
"align": false,
"space-within-parens": false,
"semicolon": false,
"quotemark": false,
// Basic
"import-blacklist": [
true,
"rxjs/Rx"
],
"no-multiline-string": false,
"arrow-parens": [true, "ban-single-arg-parens"],
"max-file-line-count": [false],
"jsdoc-format": true,
"cyclomatic-complexity": [true, 25],
"space-before-function-paren": [true, "never"],
"no-conditional-assignment": false,
// Basic w/ types
"no-for-in-array": false, // These are disables as `--type-check` causes a crash with the angular compiler.
"restrict-plus-operands": false,
// Microsoft
"no-relative-imports": false,
"mocha-no-side-effect-code": false,
"no-reserved-keywords": false,
"missing-jsdoc": false,
"export-name": false,
"no-any": false,
"no-increment-decrement": false,
"trailing-comma": [true, {"multiline": "always", "singleline": "never"}],
"no-typeof-undefined": false,
"underscore-consistent-invocation": false,
"no-backbone-get-set-outside-model": false,
"function-name": [true, {
"method-regex": "^[a-z][\\w\\d]+$",
"private-method-regex": "^[a-z][\\w\\d]+$",
"static-method-regex": "^[a-z][\\w\\d]+$",
"function-regex": "^[a-z][\\w\\d]+$"
}],
"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"
}
],
"no-stateless-class": false,
"insecure-random": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"], // for unused params
"completed-docs": [false],
"typedef": [false],
"no-import-side-effect": false,
"newline-before-return": false,
"no-unsafe-any": false,
"promise-function-async": false,
"no-void-expression": false,
"no-parameter-properties": false,
"no-single-line-block-comment": false,
"strict-boolean-expressions": false,
"member-ordering": [false],
"no-floating-promises": false,
"prefer-method-signature": false,
"prefer-template": false,
"max-classes-per-file": [false],
"no-unnecessary-callback-wrapper": false,
"prefer-for-of": false,
"no-invalid-template-strings": false,
"no-use-before-declare": false,
"unified-signatures": false,
"match-default-export-name": false,
"no-suspicious-comment": false, // For the duration of pre-release development these will be fine, rm and fix on before release.
"no-string-literal": false,
"no-string-throw": true,
"no-empty-line-after-opening-brace": true,
"no-function-expression": true,
"no-implicit-dependencies": [true, "dev"],
"no-parameter-reassignment": false,
"binary-expression-operand-order": false,
"no-unnecessary-class": false
}
}