This is a rule I try enforce in PR but it's a bit of a hassle, this will give a lint warning when it happens resulting in: - Yellow underline in supported editors when eslint is installed - Compilation will succeed since it's a warning not an error - CI will fail as it does not allow lint warnings Special case comments are ignored which includes @vt comments, table comments and commented out code.
15 lines
592 B
TypeScript
15 lines
592 B
TypeScript
/**
|
|
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
|
|
* @license MIT
|
|
*/
|
|
|
|
import { isFirefox, isLegacyEdge } from 'common/Platform';
|
|
|
|
export const INVERTED_DEFAULT_COLOR = 257;
|
|
|
|
export const DIM_OPACITY = 0.5;
|
|
// The text baseline is set conditionally by browser. Using 'ideographic' for Firefox or Legacy Edge
|
|
// would result in truncated text (Issue 3353). Using 'bottom' for Chrome would result in slightly
|
|
// unaligned Powerline fonts (PR 3356#issuecomment-850928179).
|
|
export const TEXT_BASELINE: CanvasTextBaseline = isFirefox || isLegacyEdge ? 'bottom' : 'ideographic';
|