1 | console.log('Try npm run lint/fix!');
|
2 |
|
3 | const longString =
|
4 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut aliquet diam.';
|
5 |
|
6 | const trailing = 'Semicolon';
|
7 |
|
8 | const why = 'am I tabbed?';
|
9 |
|
10 | export function doSomeStuff(
|
11 | withThis: string,
|
12 | andThat: string,
|
13 | andThose: string[]
|
14 | ) {
|
15 | //function on one line
|
16 | if (!andThose.length) {
|
17 | return false;
|
18 | }
|
19 | console.log(withThis);
|
20 | console.log(andThat);
|
21 | console.dir(andThose);
|
22 | return;
|
23 | }
|
24 | // TODO: more examples
|