diff --git a/src/components/button/button.spec.ts b/src/components/button/button.spec.ts index 4594ee9c048..0762725ca90 100644 --- a/src/components/button/button.spec.ts +++ b/src/components/button/button.spec.ts @@ -14,7 +14,7 @@ import {provide, Component, DebugElement} from 'angular2/core'; import {By} from 'angular2/platform/browser'; import {MdButton} from './button'; -import {AsyncTestFn, FunctionWithParamTokens} from "angular2/testing"; +import {AsyncTestFn, FunctionWithParamTokens} from 'angular2/testing'; describe('MdButton', () => { diff --git a/src/components/button/button.ts b/src/components/button/button.ts index 5006503e142..963b8a42d4c 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -29,7 +29,7 @@ export class MdButton { // button continues to look :active after clicking. // @see http://marcysutton.com/button-focus-hell/ this.isMouseDown = true; - setTimeout(() => {this.isMouseDown = false}, 100); + setTimeout(() => { this.isMouseDown = false; }, 100); } onFocus() { diff --git a/tslint.json b/tslint.json new file mode 100644 index 00000000000..90faeae09b7 --- /dev/null +++ b/tslint.json @@ -0,0 +1,65 @@ +{ + "rules": { + "max-line-length": [true, 100], + "no-inferrable-types": true, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "indent": [ + true, + "spaces" + ], + "eofline": true, + "no-duplicate-variable": true, + "no-eval": true, + "no-arg": true, + "no-internal-module": true, + "no-trailing-whitespace": true, + "no-bitwise": true, + "no-shadowed-variable": true, + "one-line": [ + true, + "check-catch", + "check-else", + "check-open-brace", + "check-whitespace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "semicolon": true, + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "curly": true, + "variable-name": [ + true, + "ban-keywords", + "check-format", + "allow-trailing-underscore" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ] + } +}