I heard that good practice is to use something to check my code. I found something called Codacy. I understand everything except 'space indentation expected' from TSLint and TSLint4. Is it because my ident in project is tab? If yes, how can I change this one rule in codacy?
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {TranslationModule} from '../translate.module';
const adminRoutes: Routes = [
{
path: 'admin',
children: [
]
}
];
@NgModule({
imports: [
CommonModule, RouterModule.forRoot(adminRoutes), TranslationModule
],
declarations: [
],
exports: [
]
})
export class AdminModule { }
Codacy show problem with
{
path: 'admin',
children: [
]
}
Have a look at the documentation. for instance:
"indent": [true, "tabs", 2]
see also : maintain consistent styling with angular style guide using tslint
https://github.com/angular/angular-cli/wiki/lint
"indent": [true, "tabs", 4]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With