UNPKG

481 BPlain TextView Raw
1console.log('Try npm run lint/fix!');
2
3const longString =
4 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut aliquet diam.';
5
6const trailing = 'Semicolon';
7
8const why = 'am I tabbed?';
9
10export 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