When attempting to import a file, I encountered an issue with the line exceeding 100 characters in length. Here is the original import statement:
import { BodyTableHeaderExampleModule } from '../../components/example-table/example-table-header/example-table-header-xxxx/example-table-header-xxxxx.module';
To address this problem, I attempted to split the import statement into multiple lines as shown below:
import { BodyTableHeaderExampleModule } from '../../components/example-table/example-table-header/' +
'example-table-header-xxxx/example-table-header-xxxxx.module';
However, this approach resulted in TSLint errors related to missing semicolons and unused expressions. The specific errors were:
ERROR: 11:92 semicolon Missing semicolon
ERROR: 11:93 no-unused-expression Unused expression, expected an assignment or function call
If you have any suggestions on how to successfully handle long TypeScript file imports without triggering the
Exceeds maximum line length of 100
error, your input would be greatly appreciated. Thank you.