Moved from tslint to eslint as tslint was depreciated.
Added prettier and also prettied all the typescript files using prettier ESLint is using the AirBnB rules which are the most strict to lint the files.
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {IncentiveResolver} from './incentive-resolver.service';
|
||||
import {AuthGuard} from '../auth/auth-guard.service';
|
||||
import {IncentiveComponent} from './incentive.component';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { IncentiveResolver } from './incentive-resolver.service';
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
import { IncentiveComponent } from './incentive.component';
|
||||
|
||||
const incentiveRoutes: Routes = [
|
||||
{
|
||||
@ -11,39 +11,30 @@ const incentiveRoutes: Routes = [
|
||||
component: IncentiveComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'incentive'
|
||||
permission: 'incentive',
|
||||
},
|
||||
resolve: {
|
||||
voucher: IncentiveResolver
|
||||
voucher: IncentiveResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always'
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
component: IncentiveComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'incentive'
|
||||
permission: 'incentive',
|
||||
},
|
||||
resolve: {
|
||||
voucher: IncentiveResolver
|
||||
voucher: IncentiveResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always'
|
||||
}
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild(incentiveRoutes)
|
||||
|
||||
],
|
||||
exports: [
|
||||
RouterModule
|
||||
],
|
||||
providers: [
|
||||
IncentiveResolver
|
||||
]
|
||||
imports: [CommonModule, RouterModule.forChild(incentiveRoutes)],
|
||||
exports: [RouterModule],
|
||||
providers: [IncentiveResolver],
|
||||
})
|
||||
export class IncentiveRoutingModule {
|
||||
}
|
||||
export class IncentiveRoutingModule {}
|
||||
|
||||
Reference in New Issue
Block a user