vscode-go/tslint.json

170 строки
3.6 KiB
JSON
Исходник Обычный вид История

2016-02-07 22:23:10 +03:00
{
"rules": {
2019-03-03 06:45:04 +03:00
"adjacent-overload-signatures": true,
"align": {
"options": [
"parameters",
"statements"
]
},
// "arrow-parens": true,
"arrow-return-shorthand": true,
"ban-types": {
"options": [
[
"Object",
"Avoid using the `Object` type. Did you mean `object`?"
],
[
"Function",
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
],
[
"Boolean",
"Avoid using the `Boolean` type. Did you mean `boolean`?"
],
[
"Number",
"Avoid using the `Number` type. Did you mean `number`?"
],
[
"String",
"Avoid using the `String` type. Did you mean `string`?"
],
[
"Symbol",
"Avoid using the `Symbol` type. Did you mean `symbol`?"
]
]
},
// "callable-types": true,
2016-02-07 22:23:10 +03:00
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
2019-03-03 06:45:04 +03:00
"eofline": true,
"forin": true,
"import-spacing": true,
2016-02-07 22:23:10 +03:00
"indent": [
true,
"tabs"
],
2019-03-03 06:45:04 +03:00
// "interface-name": {
// "options": ["always-prefix"]
// },
"interface-over-type-literal": true,
// "jsdoc-format": true,
"label-position": true,
"max-classes-per-file": {
"options": 2
},
// "max-line-length": { "options": 120 },
// "member-access": true,
// "member-ordering": {
// "options": {
// "order": "statics-first"
// }
// },
"new-parens": true,
"no-arg": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
2019-03-03 06:45:04 +03:00
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
2016-02-07 22:23:10 +03:00
"no-duplicate-variable": true,
"no-empty": true,
2019-03-03 06:45:04 +03:00
"no-empty-interface": true,
2016-02-07 22:23:10 +03:00
"no-eval": true,
"no-internal-module": true,
2019-03-03 06:45:04 +03:00
"no-invalid-this": false,
"no-misused-new": true,
"no-namespace": true,
"no-reference": true,
"no-reference-import": true,
// "no-shadowed-variable": true,
"no-string-throw": true,
2016-02-07 22:23:10 +03:00
"no-trailing-whitespace": true,
2019-03-03 06:45:04 +03:00
"no-unnecessary-initializer": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
2016-02-07 22:23:10 +03:00
"no-var-keyword": true,
2019-03-03 06:45:04 +03:00
// "no-var-requires": true,
// "object-literal-key-quotes": { "options": "consistent-as-needed" },
"object-literal-shorthand": true,
2019-03-03 06:45:04 +03:00
// "object-literal-sort-keys": true,
2016-02-07 22:23:10 +03:00
"one-line": [
true,
2019-03-03 06:45:04 +03:00
"check-catch",
// "check-else",
"check-finally",
2016-02-07 22:23:10 +03:00
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": { "options": ["ignore-for-loop"] },
2019-03-03 06:45:04 +03:00
// "only-arrow-functions": {
// "options": ["allow-declarations", "allow-named-functions"]
// },
// "ordered-imports": {
// "options": {
// "import-sources-order": "case-insensitive",
// "module-source-path": "full",
// "named-imports-order": "case-insensitive"
// }
// },
"prefer-const": true,
2019-03-03 06:45:04 +03:00
// "prefer-for-of": true,
2016-02-07 22:23:10 +03:00
"quotemark": [
true,
"single"
],
2019-03-03 06:45:04 +03:00
// "radix": true,
2016-02-07 22:23:10 +03:00
"semicolon": true,
2019-03-03 06:45:04 +03:00
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"trailing-comma": {
"options": {
"esSpecCompliant": true
}
},
2016-02-07 22:23:10 +03:00
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
2019-03-03 06:45:04 +03:00
"unified-signatures": true,
"use-isnan": true,
2016-02-07 22:23:10 +03:00
"variable-name": [
true,
2019-03-03 06:45:04 +03:00
"ban-keywords",
"check-format",
"allow-pascal-case"
2016-02-07 22:23:10 +03:00
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}