chore(): add tslint.json

This commit is contained in:
Jeremy Elbourn
2016-01-15 17:47:43 -08:00
parent 1290724315
commit 63d27a31e5
3 changed files with 67 additions and 2 deletions
+1 -1
View File
@@ -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', () => {
+1 -1
View File
@@ -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() {
+65
View File
@@ -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"
]
}
}