Files
grafana/tslint.json
T

77 lines
2.3 KiB
JSON
Raw Normal View History

2016-01-13 21:07:57 +01:00
{
"rules": {
2018-08-30 07:34:17 +02:00
"array-type": [true, "array-simple"],
"arrow-return-shorthand": true,
"ban": [true,
{"name": "Array", "message": "tsstyle#array-constructor"}
],
2018-08-30 07:47:46 +02:00
"ban-types": [true,
["Object", "Use {} instead."],
["String", "Use 'string' instead."],
["Number", "Use 'number' instead."],
["Boolean", "Use 'boolean' instead."]
],
2018-08-24 16:48:47 +02:00
"interface-name": [true, "never-prefix"],
2017-09-21 17:23:31 +02:00
"no-string-throw": true,
"no-unused-expression": true,
2018-07-08 15:48:05 +01:00
"no-unused-variable": false,
"no-use-before-declare": false,
"no-duplicate-variable": true,
2017-09-21 17:23:31 +02:00
"curly": true,
2016-01-13 21:07:57 +01:00
"class-name": true,
2017-10-07 10:31:39 +02:00
"semicolon": [true, "always", "ignore-bound-class-methods"],
2017-09-21 17:23:31 +02:00
"triple-equals": [true, "allow-null-check"],
"comment-format": [false, "check-space"],
2016-01-13 21:07:57 +01:00
"eofline": true,
2016-01-13 21:22:39 +01:00
"forin": false,
2017-09-21 17:23:31 +02:00
"indent": [true, "spaces", 2],
"jsdoc-format": true,
2016-01-13 21:07:57 +01:00
"label-position": true,
"max-line-length": [true, 150],
"member-access": [true, "no-public"],
2018-09-03 20:36:01 +02:00
"new-parens": true,
"no-angle-bracket-type-assertion": true,
2016-01-13 21:07:57 +01:00
"no-arg": true,
2017-11-23 14:53:23 +01:00
"no-bitwise": false,
"no-conditional-assignment": true,
2018-08-30 07:34:17 +02:00
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
2016-01-13 21:07:57 +01:00
"no-construct": true,
"no-debugger": true,
2016-02-10 08:32:16 +01:00
"no-empty": false,
2016-01-13 21:07:57 +01:00
"no-eval": true,
"no-inferrable-types": true,
"no-namespace": [true, "allow-declarations"],
"no-reference": true,
2016-01-13 21:22:39 +01:00
"no-shadowed-variable": false,
"no-string-literal": false,
"no-switch-case-fall-through": false,
2016-01-13 21:07:57 +01:00
"no-trailing-whitespace": true,
"no-var-keyword": true,
2016-01-13 21:07:57 +01:00
"object-literal-sort-keys": false,
2018-08-30 07:34:17 +02:00
"one-line": [true, "check-open-brace", "check-catch", "check-else"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
2018-08-30 07:18:28 +02:00
"prefer-const": true,
"radix": true,
2018-08-30 07:34:17 +02:00
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"check-format",
"ban-keywords",
"allow-leading-underscore",
"allow-trailing-underscore",
"allow-pascal-case"
],
"use-isnan": true,
2018-08-30 07:34:17 +02:00
"whitespace": [true, "check-branch", "check-decl", "check-type", "check-preblock"]
2016-01-13 21:07:57 +01:00
}
}