Skip to content

Instantly share code, notes, and snippets.

@Charles-Hsu
Last active May 9, 2018 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Charles-Hsu/74099918be157ef7b2bf4e91c1f68599 to your computer and use it in GitHub Desktop.
Save Charles-Hsu/74099918be157ef7b2bf4e91c1f68599 to your computer and use it in GitHub Desktop.
Dojo 2 相關紀錄
{
"rules": {
"align": false,
"ban": [],
"class-name": false,
"comment-format": [ false, "check-space" ],
"curly": false,
"eofline": false,
"forin": false,
"indent": [ false, "tabs" ],
"interface-name": [ false, "never-prefix" ],
"jsdoc-format": false,
"label-position": true,
"max-line-length": 120,
"member-access": false,
"member-ordering": false,
"no-any": false,
"no-arg": true,
"no-bitwise": false,
"no-consecutive-blank-lines": false,
"no-console": false,
"no-construct": false,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-inferrable-types": [ false, "ignore-params" ],
"no-shadowed-variable": false,
"no-string-literal": false,
"no-switch-case-fall-through": false,
"no-trailing-whitespace": false,
"no-unused-expression": false,
"no-unused-variable": false,
"no-use-before-declare": false,
"no-var-keyword": false,
"no-var-requires": false,
"object-literal-sort-keys": false,
"one-line": [ false, "check-open-brace", "check-whitespace" ],
"quotemark": [ false, "single" ],
"radix": false,
"semicolon": [ true, "always" ],
"trailing-comma": [ false, {
"multiline": "never",
"singleline": "never"
} ],
"triple-equals": [ false, "allow-null-check" ],
"typedef": false,
"typedef-whitespace": [ false, {
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}, {
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
} ],
"variable-name": [ false, "check-format", "allow-leading-underscore", "ban-keywords", "allow-pascal-case" ],
"whitespace": [ false, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-typecast" ]
}
}
@Charles-Hsu
Copy link
Author

更改 tslint 的設定, 不然 dojo build 會 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment