Skip to content

Commit

Permalink
chore: avoid disabling prettier (#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Jun 23, 2020
1 parent 381b0f8 commit 1ee379c
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions src/common/ConsoleMessage.ts
Expand Up @@ -36,19 +36,29 @@ export interface ConsoleMessageLocation {
columnNumber?: number;
}

// Prettier seems to struggle with the ConsoleMessageType declaration
// so it is switched off just for that block.
/* eslint-disable prettier/prettier */

/**
* The supported types for console messages.
*/
export type ConsoleMessageType = 'log' | 'debug' | 'info' | 'error' | 'warning' |
'dir' | 'dirxml' | 'table' | 'trace' | 'clear' | 'startGroup' |
'startGroupCollapsed' | 'endGroup' | 'assert' | 'profile' |
'profileEnd' | 'count' | 'timeEnd' | 'verbose';

/* eslint-enable prettier/prettier */
export type ConsoleMessageType =
| 'log'
| 'debug'
| 'info'
| 'error'
| 'warning'
| 'dir'
| 'dirxml'
| 'table'
| 'trace'
| 'clear'
| 'startGroup'
| 'startGroupCollapsed'
| 'endGroup'
| 'assert'
| 'profile'
| 'profileEnd'
| 'count'
| 'timeEnd'
| 'verbose';

/**
* ConsoleMessage objects are dispatched by page via the 'console' event.
Expand Down

0 comments on commit 1ee379c

Please sign in to comment.