1 Star 0 Fork 56

pythonpc / m3k6

forked from zlq4863947 / m3k6 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tslint.json 5.87 KB
一键复制 编辑 原始数据 按行查看 历史
zlq4863947 提交于 2019-11-15 23:00 . 增加tslint
{
"extends": [
"tslint-eslint-rules"
],
"rulesDirectory": [
"node_modules/vrsource-tslint-rules/rules"
],
"rules": {
"adjacent-overload-signatures": true,
"array-type": [true, "array"],
"arrow-return-shorthand": true,
"await-promise": true,
"ban": [
true,
"eval",
{"name": "$", "message": "don't use"},
{"name": ["fdescribe"], "message": "don't focus tests"},
{"name": ["fit"], "message": "don't focus tests"},
{"name": ["describe", "only"], "message": "don't focus tests"},
{"name": ["it", "only"], "message": "don't focus tests"}
],
"ban-comma-operator": true,
"ban-types": [true, ["Object", "Use {} instead."], ["Array", "Use [] instead."]],
"block-spacing": [
true,
"always"
],
"callable-types": true,
"class-name": true,
"comment-format": [true, "check-space"],
"cyclomatic-complexity": true,
"deprecation": true,
"eofline": true,
"file-name-casing": [true, "kebab-case"],
"forin": true,
"import-blacklist": [
true
],
"interface-name": [true, "never-prefix"],
"interface-over-type-literal": true,
"label-position": true,
"match-default-export-name": true,
"member-access": [true, "no-public"],
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-constructor",
"protected-constructor",
"private-constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"newline-before-return": true,
"no-arg": true,
"no-bitwise": true,
"no-boolean-literal-compare": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-imports": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": true,
"no-empty": false,
"no-empty-interface": true,
"no-eval": true,
"no-extra-semi": true,
"no-floating-promises": true,
"no-for-in-array": true,
"no-import-side-effect": true,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-inferred-empty-object-type": true,
"no-inner-declarations": true,
"no-internal-module": true,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-irregular-whitespace": true,
"no-magic-numbers": false,
"no-mergeable-namespace": true,
"no-misused-new": true,
"no-multi-spaces": true,
"no-namespace": true,
"no-parameter-properties": false,
"no-parameter-reassignment": true,
"no-regex-spaces": true,
"no-return-await": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": false,
"no-string-throw": true,
"no-submodule-imports": [
true,
"@dripjs",
"@nestjs",
"rxjs"
],
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-trailing-whitespace": true,
"no-unbound-method": false,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": false,
"no-unnecessary-initializer": true,
"no-unnecessary-type-assertion": true,
"no-unnecessary-qualifier": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-var-keyword": true,
"no-var-requires": true,
"number-literal-format": true,
"object-literal-shorthand": true,
"object-literal-sort-keys": false,
"one-variable-per-declaration": true,
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"prefer-case-blocks": true,
"prefer-conditional-expression": true,
"prefer-const": true,
"prefer-function-over-method": [true, "allow-public"],
"prefer-literal": [
true,
"object",
"function",
"array"
],
"prefer-method-signature": false,
"prefer-object-spread": true,
"prefer-readonly": true,
"prefer-switch": [true, {"min-cases": 4}],
"prefer-template": true,
"prefer-while": true,
"promise-function-async": true,
"radix": true,
"restrict-plus-operands": true,
"return-undefined": true,
"space-in-parens": [true, "never"],
"switch-default": true,
"switch-final-break": true,
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"
],
"type-literal-delimiter": true,
"typedef": [true, "call-signature", "parameter"],
"unified-signatures": true,
"use-default-type-parameter": true,
"use-isnan": true,
"valid-typeof": true,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"ext-variable-name": [
true,
["class", "pascal"],
["interface", "pascal"],
["parameter", "camel", "allow-leading-underscore"],
["property", "static", "camel"],
["property", "private", "camel", "allow-leading-underscore"],
["property", "protected", "camel", "allow-leading-underscore"],
["variable", "local", "camel", "allow-leading-underscore"],
["method", "private", "camel", "allow-leading-underscore"],
["method", "protected", "camel", "allow-leading-underscore"],
["function", "camel"]
]
}
}
TypeScript
1
https://gitee.com/wuwenxian/m3k6.git
git@gitee.com:wuwenxian/m3k6.git
wuwenxian
m3k6
m3k6
master

搜索帮助