Skip to content

Commit

Permalink
added lastest lint fixes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
markwpearce committed May 14, 2024
1 parent 4006e14 commit 120f6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createColorValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function createColorValidator(severity: Readonly<BsLintRules>) {
return (text, range, diagnostics) => {
const len = text.length;
if (len < 7 || len > 12) {
// we're only interested in string length is between 7 (#DBDBDB) to 12 ("0xDBDBDBff") chars long
// we're only interested in string length is between 7 (#EBEBEB) to 12 ("0xEBEBEBFF") chars long
return;
}

Expand Down Expand Up @@ -82,7 +82,7 @@ function validateColorCertCompliance(matches: RegExpMatchArray, range: Range, di
const validateCertCompliant = certCompliant === 'always';
if (validateCertCompliant && matches) {
const BROADCAST_SAFE_BLACK = '161616';
const BROADCAST_SAFE_WHITE = 'DBDBDB';
const BROADCAST_SAFE_WHITE = 'EBEBEB';
const MAX_BLACK_LUMA = getColorLuma(BROADCAST_SAFE_BLACK);
const MAX_WHITE_LUMA = getColorLuma(BROADCAST_SAFE_WHITE);
let colorValue = matches[0];
Expand Down

0 comments on commit 120f6c3

Please sign in to comment.