Skip to content

Commit 63d27a3

Browse files
committed
chore(): add tslint.json
1 parent 1290724 commit 63d27a3

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

src/components/button/button.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {provide, Component, DebugElement} from 'angular2/core';
1414
import {By} from 'angular2/platform/browser';
1515

1616
import {MdButton} from './button';
17-
import {AsyncTestFn, FunctionWithParamTokens} from "angular2/testing";
17+
import {AsyncTestFn, FunctionWithParamTokens} from 'angular2/testing';
1818

1919

2020
describe('MdButton', () => {

src/components/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class MdButton {
2929
// button continues to look :active after clicking.
3030
// @see http://marcysutton.com/button-focus-hell/
3131
this.isMouseDown = true;
32-
setTimeout(() => {this.isMouseDown = false}, 100);
32+
setTimeout(() => { this.isMouseDown = false; }, 100);
3333
}
3434

3535
onFocus() {

tslint.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"rules": {
3+
"max-line-length": [true, 100],
4+
"no-inferrable-types": true,
5+
"class-name": true,
6+
"comment-format": [
7+
true,
8+
"check-space"
9+
],
10+
"indent": [
11+
true,
12+
"spaces"
13+
],
14+
"eofline": true,
15+
"no-duplicate-variable": true,
16+
"no-eval": true,
17+
"no-arg": true,
18+
"no-internal-module": true,
19+
"no-trailing-whitespace": true,
20+
"no-bitwise": true,
21+
"no-shadowed-variable": true,
22+
"one-line": [
23+
true,
24+
"check-catch",
25+
"check-else",
26+
"check-open-brace",
27+
"check-whitespace"
28+
],
29+
"quotemark": [
30+
true,
31+
"single",
32+
"avoid-escape"
33+
],
34+
"semicolon": true,
35+
"triple-equals": [
36+
true,
37+
"allow-null-check"
38+
],
39+
"typedef-whitespace": [
40+
true,
41+
{
42+
"call-signature": "nospace",
43+
"index-signature": "nospace",
44+
"parameter": "nospace",
45+
"property-declaration": "nospace",
46+
"variable-declaration": "nospace"
47+
}
48+
],
49+
"curly": true,
50+
"variable-name": [
51+
true,
52+
"ban-keywords",
53+
"check-format",
54+
"allow-trailing-underscore"
55+
],
56+
"whitespace": [
57+
true,
58+
"check-branch",
59+
"check-decl",
60+
"check-operator",
61+
"check-separator",
62+
"check-type"
63+
]
64+
}
65+
}

0 commit comments

Comments
 (0)