Last active
January 19, 2016 07:04
-
-
Save KatsuYuzu/90b496fe895263c5572d to your computer and use it in GitHub Desktop.
好みの tslint.json(Web Essentials 2.5.4時点のすべての rules)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// added and custom from Web Essentials 2.5.4 default | |
{ | |
"rules": { | |
"ban": [ | |
true, | |
[ "_", "extend" ], | |
[ "_", "isNull" ], | |
[ "_", "isDefined" ] | |
], | |
"class-name": true, | |
"comment-format": [ | |
true, | |
"check-space" | |
], | |
"curly": true, | |
"eofline": true, | |
"forin": true, | |
"indent": [ true, 4 ], | |
"interface-name": true, | |
"jsdoc-format": true, | |
"label-position": true, | |
"label-undefined": true, | |
"max-line-length": [ true, 140 ], | |
"member-ordering": [ | |
true, | |
"static-before-instance" | |
], | |
"no-any": false, | |
"no-arg": true, | |
"no-bitwise": true, | |
"no-console": [ | |
true, | |
"debug", | |
"info", | |
"time", | |
"timeEnd", | |
"trace" | |
], | |
"no-consecutive-blank-lines": true, | |
"no-construct": true, | |
"no-constructor-vars": false, | |
"no-debugger": true, | |
"no-duplicate-key": true, | |
"no-duplicate-variable": true, | |
"no-empty": true, | |
"no-eval": true, | |
"no-string-literal": true, | |
"no-switch-case-fall-through": true, | |
"no-trailing-comma": true, | |
"no-trailing-whitespace": true, | |
"no-unused-expression": true, | |
"no-unused-variable": true, | |
"no-unreachable": true, | |
"no-use-before-declare": true, | |
"no-var-requires": true, | |
"one-line": [ | |
true, | |
"check-open-brace", | |
"check-catch", | |
"check-else", | |
"check-whitespace" | |
], | |
"quotemark": [ true, "double" ], | |
"radix": true, | |
"semicolon": true, | |
"triple-equals": [ true, "allow-null-check" ], | |
"typedef": [ | |
true, | |
"callSignature", | |
"indexSignature", | |
"parameter", | |
"propertySignature", | |
"variableDeclarator" | |
], | |
"typedef-whitespace": [ | |
true, | |
[ "callSignature", "noSpace" ], | |
[ "catchClause", "noSpace" ], | |
[ "indexSignature", "space" ] | |
], | |
"use-strict": [ | |
true, | |
"check-module", | |
"check-function" | |
], | |
"variable-name": [ true, "allow-leading-underscore" ], | |
"whitespace": [ | |
true, | |
"check-branch", | |
"check-decl", | |
"check-operator", | |
"check-type" | |
] | |
} | |
} |
- Visual StudioでTypeScriptの構文解析tslintを導入する方法 - KatsuYuzuのブログ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment