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