зеркало из https://github.com/microsoft/etcd3.git
58 строки
1.7 KiB
JSON
58 строки
1.7 KiB
JSON
{
|
|
"extends": "tslint-microsoft-contrib",
|
|
"rulesDirectory": [
|
|
"node_modules/tslint-microsoft-contrib"
|
|
],
|
|
"rules": {
|
|
// Basic
|
|
"no-multiline-string": false,
|
|
"jsdoc-format": true,
|
|
"cyclomatic-complexity": [true, 20],
|
|
"no-default-export": false,
|
|
"typedef": false,
|
|
"no-unsafe-any": false,
|
|
"no-parameter-properties": false,
|
|
"max-classes-per-file": false,
|
|
"strict-boolean-expressions": false,
|
|
"no-require-imports": false,
|
|
"no-var-requires": false,
|
|
"newline-before-return": false,
|
|
"match-default-export-name": false,
|
|
"prefer-for-of": false,
|
|
"no-non-null-assertion": false,
|
|
"promise-function-async": false,
|
|
"no-void-expression": false,
|
|
"no-use-before-declare": false,
|
|
"unified-signatures": false,
|
|
"max-func-body-length": false,
|
|
|
|
// Prettier-incompatible or prettier-handled rules
|
|
"align": false,
|
|
"no-single-line-block-comment": false,
|
|
"semicolon": false,
|
|
"trailing-comma": false,
|
|
"space-before-function-paren": false,
|
|
"quotemark": false,
|
|
|
|
// Microsoft
|
|
"no-relative-imports": false,
|
|
"missing-jsdoc": false,
|
|
"chai-vague-errors": false,
|
|
"import-name": false,
|
|
"export-name": false,
|
|
"no-reserved-keywords": false,
|
|
"no-any": false,
|
|
"no-increment-decrement": 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-zA-Z][\\w\\d]+$"
|
|
}],
|
|
"insecure-random": false,
|
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"], // for unused params
|
|
"no-string-based-set-timeout": false
|
|
}
|
|
}
|