Update tslint.json

This commit is contained in:
Aya Morisawa 2017-03-01 17:25:07 +09:00
parent cf9820af75
commit d2c70afd37

View file

@ -1,112 +1,142 @@
{ {
"rules": { "rules": {
// TypeScript Specific // TypeScript Specific
"member-access": false, "ban-types": [
"member-ordering": [true, true,
"static-before-instance", [
"variables-before-functions" "Object"
], ]
"no-any": false, ],
"no-inferrable-types": false, "member-access": false,
"no-internal-module": false, "member-ordering": [
"no-namespace": false, true,
"no-reference": true, "static-before-instance",
"no-var-requires": false, "variables-before-functions"
"only-arrow-functions": false, ],
"typedef": [true, "no-any": false,
"call-signature", "no-import-side-effect": true,
"property-declaration" "no-inferrable-types": false,
], "no-internal-module": false,
"typedef-whitespace": [true, { "no-namespace": false,
"call-signature": "nospace", "no-non-null-assertion": true,
"index-signature": "nospace", "no-reference": true,
"parameter": "nospace", "no-var-requires": false,
"property-declaration": "nospace", "only-arrow-functions": false,
"variable-declaration": "nospace" "typedef": [
}], true,
"property-declaration"
// Functionality ],
"ban": false, "typedef-whitespace": [
"curly": false, true,
"forin": true, {
"label-position": true, "call-signature": "nospace",
"no-arg": true, "index-signature": "nospace",
"no-bitwise": true, "parameter": "nospace",
"no-conditional-assignment": true, "property-declaration": "nospace",
"no-console": [true, "variable-declaration": "nospace"
"debug", }
"info", ],
"time", // Functionality
"timeEnd", "ban": false,
"trace" "curly": false,
], "forin": true,
"no-construct": true, "label-position": true,
"no-debugger": true, "no-arg": true,
"no-duplicate-variable": true, "no-bitwise": true,
"no-empty": true, "no-conditional-assignment": true,
"no-eval": false, "no-console": [
"no-for-in-array": false, true,
"no-invalid-this": [true, "check-function-in-method"], "debug",
"no-null-keyword": false, "info",
"no-shadowed-variable": false, "time",
"no-string-literal": false, "timeEnd",
"no-switch-case-fall-through": true, "trace"
"no-unsafe-finally": true, ],
"no-unused-expression": true, "no-construct": true,
"no-unused-new": true, "no-debugger": true,
"no-use-before-declare": true, "no-duplicate-super": true,
"no-var-keyword": true, "no-duplicate-variable": true,
"radix": true, "no-empty": true,
"restrict-plus-operands": false, "no-eval": false,
"switch-default": false, "no-for-in-array": false,
"triple-equals": [false, "allow-null-check", "allow-undefined-check"], "no-invalid-this": [
"use-isnan": true, true,
"check-function-in-method"
// Maintainability ],
"eofline": true, "no-null-keyword": false,
"indent": [true, "tabs"], "no-shadowed-variable": false,
"linebreak-style": false, "no-string-literal": false,
"max-file-line-count": false, "no-switch-case-fall-through": true,
"max-line-length": false, "no-unsafe-finally": true,
"no-default-export": false, "no-unused-expression": true,
"no-mergeable-namespace": true, "no-unused-new": true,
"no-require-imports": false, "no-use-before-declare": true,
"no-trailing-whitespace": true, "no-var-keyword": true,
"object-literal-sort-keys": false, "radix": true,
"trailing-comma": true, "restrict-plus-operands": false,
"switch-default": false,
// Style "triple-equals": [
"align": [true, false,
"parameters", "allow-null-check",
"statements" "allow-undefined-check"
], ],
"arrow-parens": false, "use-isnan": true,
"class-name": true, // Maintainability
"comment-format": false, "eofline": true,
"interface-name": false, "indent": [
"jsdoc-format": true, true,
"new-parens": true, "tabs"
"no-angle-bracket-type-assertion": true, ],
"no-consecutive-blank-lines": true, "linebreak-style": false,
"object-literal-key-quotes": false, "max-file-line-count": false,
"one-line": [true, "max-line-length": false,
"check-catch", "no-default-export": false,
"check-finally", "no-mergeable-namespace": true,
"check-else", "no-require-imports": false,
"check-open-brace", "no-trailing-whitespace": true,
"check-whitespace" "object-literal-sort-keys": false,
], "trailing-comma": true,
"one-variable-per-declaration": true, // Style
"ordered-imports": false, "align": [
"quotemark": [true, "single", "avoid-escape"], true,
"semicolon": true, "parameters",
"variable-name": false, "statements"
"whitespace": [true, ],
"check-branch", "arrow-parens": false,
"check-decl", "class-name": true,
"check-operator", "comment-format": false,
"check-separator", "interface-name": false,
"check-type" "jsdoc-format": true,
] "match-default-export-name": false,
} "newline-before-return": false,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": true,
"object-literal-key-quotes": false,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"ordered-imports": false,
"quotemark": [
true,
"single",
"avoid-escape"
],
"semicolon": true,
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
} }