Skip to content

Commit

Permalink
chore(): add tslint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
madhukard committed Jan 16, 2016
1 parent 59c4287 commit 06e8da2
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 134 deletions.
4 changes: 2 additions & 2 deletions app/src/about/about.ts
Expand Up @@ -9,6 +9,6 @@ import {MATERIAL_DIRECTIVES} from 'ng2-material/all';
export class About {
clickMessage = '';
onClickMe() {
this.clickMessage ='You are my hero!';
this.clickMessage = 'You are my hero!';
}
}
}
2 changes: 1 addition & 1 deletion app/src/app.spec.ts
Expand Up @@ -8,7 +8,7 @@ describe('AppComponent component', () => {
subscribe: function() {
}
};
//noinspection TypeScriptValidateTypes
// noinspection TypeScriptValidateTypes
var appComponent = new AppComponent(null, routerMock);
expect(appComponent).toBeDefined();
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/app.ts
Expand Up @@ -30,4 +30,4 @@ export class AppComponent {
clicked(message: string) {
console.log(message);
}
}
}
6 changes: 2 additions & 4 deletions app/src/boot.ts
@@ -1,5 +1,3 @@
"use strict";

import 'ng2-material/dist/ng2-material.css!';
import 'assets/material-icons.css!';
import 'assets/app.css!';
Expand All @@ -12,6 +10,6 @@ import {ROUTER_PROVIDERS} from 'angular2/router';

import {AppComponent} from './app';

//noinspection TypeScriptValidateTypes
// noinspection TypeScriptValidateTypes
bootstrap(AppComponent, [HTTP_PROVIDERS, ROUTER_PROVIDERS])
.catch(err => console.error(err));
.catch(err => console.error(err));
2 changes: 1 addition & 1 deletion app/src/home/home.ts
Expand Up @@ -10,4 +10,4 @@ export class Home {
constructor() {

}
}
}
125 changes: 0 additions & 125 deletions tools/tslint.json

This file was deleted.

64 changes: 64 additions & 0 deletions tslint.json
@@ -0,0 +1,64 @@
{
"rules": {
"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"
]
}
}

0 comments on commit 06e8da2

Please sign in to comment.