mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-02-17 13:41:03 +02:00
124 lines
3.5 KiB
JSON
124 lines
3.5 KiB
JSON
{
|
|
"extends": [
|
|
"tslint:all"
|
|
],
|
|
"rules": {
|
|
"no-any": false,
|
|
"typedef": [
|
|
false,
|
|
"call-signature",
|
|
"arrow-call-signature",
|
|
"parameter",
|
|
"arrow-parameter",
|
|
"property-declaration",
|
|
"member-variable-declaration"
|
|
],
|
|
"no-shadowed-variable": [
|
|
false,
|
|
{
|
|
"class": true,
|
|
"enum": true,
|
|
"function": true,
|
|
"interface": true,
|
|
"namespace": true,
|
|
"typeAlias": false,
|
|
"typeParameter": false
|
|
}
|
|
],
|
|
|
|
"align": [
|
|
true,
|
|
"parameters",
|
|
"statements",
|
|
"elements",
|
|
"members"
|
|
],
|
|
"no-default-export": false,
|
|
"cyclomatic-complexity": false,
|
|
"binary-expression-operand-order": false,
|
|
"one-variable-per-declaration": [true, "ignore-for-loop"],
|
|
"newline-per-chained-call": false,
|
|
"prefer-template": [true, "allow-single-concat"],
|
|
"newline-before-return": false,
|
|
"no-magic-numbers": false,
|
|
"member-ordering": [true, { "order": "statics-first" }],
|
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
"class-name": true,
|
|
"comment-format": [true, "check-space"],
|
|
"indent": [true, "spaces", 4],
|
|
"interface-name": [true, "always-prefix"],
|
|
"max-classes-per-file": false,
|
|
"max-line-length": [true, 150],
|
|
"member-access": false,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": true,
|
|
"no-eval": true,
|
|
"no-internal-module": true,
|
|
"no-trailing-whitespace": true,
|
|
"no-var-keyword": true,
|
|
"object-literal-sort-keys": false,
|
|
"one-line": [
|
|
true,
|
|
"check-else",
|
|
"check-open-brace",
|
|
"check-whitespace"
|
|
],
|
|
"ordered-imports": false,
|
|
"radix": false,
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"avoid-escape"
|
|
],
|
|
"semicolon": [true, "never"],
|
|
"no-implicit-dependencies": [true, "dev"],
|
|
"triple-equals": true,
|
|
"prefer-for-of": true,
|
|
"prefer-const": true,
|
|
"curly": [true, "ignore-same-line"],
|
|
"only-arrow-functions": [true, "allow-named-functions"],
|
|
"no-console": false,
|
|
"no-string-literal": false,
|
|
"forin": false,
|
|
"switch-default": false,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never",
|
|
"esSpecCompliant": true
|
|
}
|
|
],
|
|
"typedef-whitespace": [
|
|
true,
|
|
{
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
}
|
|
],
|
|
"variable-name": [
|
|
true,
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-snake-case"
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-module",
|
|
"check-separator",
|
|
"check-rest-spread",
|
|
"check-type",
|
|
"check-typecast",
|
|
"check-type-operator",
|
|
"check-preblock"
|
|
],
|
|
"linebreak-style": false
|
|
}
|
|
}
|