Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TSLint Error "Exceeds maximum line length of 120"

In my Angular2 App I'm importing one component like this:

import { PersonsSingleAccountComponent} from     '../persons-information/fragments/persons-single-account/persons-single-account-bookings/persons-single-account-bookings.component' 

It is giving me the lint error "Exceeds maximum line character". If I try to give the statement in ``(backtick) it is throwing an error.

How can I solve this lint error?

like image 552
Priya Avatar asked Mar 09 '17 10:03

Priya


Video Answer


1 Answers

It's not really something you can change, not related to your code.

You should simply disable the rule for this import by adding a comment before :

// tslint:disable-next-line:max-line-length import { PersonsSingleAccountComponent} from '../persons-information/fragments/persons-single-account/persons-single-account-bookings/persons-single-account-bookings.component' 
like image 87
maxime1992 Avatar answered Sep 29 '22 06:09

maxime1992