Skip to content

Commit

Permalink
fix(semicolon): Fixed missing semicolons
Browse files Browse the repository at this point in the history
Fixed missing semicolons
  • Loading branch information
jrgcubano committed Oct 14, 2017
1 parent cb05062 commit 63822db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write --no-semi --single-quote",
"prettier --write --single-quote",
"git add"
]
},
Expand Down Expand Up @@ -122,6 +122,7 @@
"source-map-loader": "0.2.2",
"ts-loader": "2.3.7",
"tslint": "5.7.0",
"tslint-config-prettier": "^1.5.0",
"typescript": "2.5.3",
"uglify-js": "2.8.29",
"validate-commit-msg": "2.12.1",
Expand Down
15 changes: 8 additions & 7 deletions src/common/common.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Type, NgModule, ModuleWithProviders } from '@angular/core'
import { CommonModule } from '@angular/common'
import { Type, NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';

/**
* PIPES
Expand All @@ -11,17 +11,18 @@ import {
MTrimPipe,
MTimeAgoPipe,
MTimeDifferencePipe
} from './pipes'
} from './pipes';

const M_PIPES: Array<Type<any>> = [
MCapitalizePipe,
MReverseStrPipe,
MTrimPipe,
MTimeAgoPipe,

MTimeDifferencePipe
]
];

export { MTimeAgoPipe }
export { MTimeAgoPipe };

@NgModule({
imports: [CommonModule],
Expand All @@ -35,7 +36,7 @@ export class MallorcaCommonModule {
public static forRoot(): ModuleWithProviders {
return {
ngModule: MallorcaCommonModule
}
};
}

/**
Expand All @@ -44,6 +45,6 @@ export class MallorcaCommonModule {
public static forChild(): ModuleWithProviders {
return {
ngModule: MallorcaCommonModule
}
};
}
}
11 changes: 7 additions & 4 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "tslint:recommended",
"extends": [
"tslint:recommended",
"tslint-config-prettier"
],
"rulesDirectory": [
"node_modules/codelyzer"
],
Expand All @@ -22,7 +25,7 @@
],
"max-line-length": [true, 150],
"member-access": [
false
false
],
"component-selector": [
true,
Expand All @@ -46,7 +49,7 @@
"use-pipe-transform-interface": true,
"pipe-naming": [
true,
"camelCase"
"camelCase"
],
"component-class-suffix": [
true,
Expand All @@ -70,4 +73,4 @@
false
]
}
}
}

0 comments on commit 63822db

Please sign in to comment.