You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chalk`{red {bold ${browser}} has multiple {bold ${status}} releases (${releasesForStatus.join(
29
-
', ',
30
-
)}), which is {bold not} allowed.}`,
28
+
styleText(
29
+
'red',
30
+
`${styleText('bold',browser)} has multiple ${styleText('bold',status)} releases (${releasesForStatus.join(', ')}), which is ${styleText('bold','not')} allowed.`,
chalk`{red {bold ${browser}} has {bold ${status}} releases without release date (${releasesWithoutDate.join(
68
-
', ',
69
-
)}), which is {bold not} allowed.}`,
72
+
styleText(
73
+
'red',
74
+
`${styleText('bold',browser)} has ${styleText('bold',status)} releases without release date (${releasesWithoutDate.join(', ')}), which is ${styleText('bold','not')} allowed.`,
errorMessage+=chalk`Basic support in {bold${browser}} was declared implemented in a later version ({bold${parentValue}}) than the following sub-feature(s):`;
432
+
errorMessage+=`Basic support in ${styleText('bold',browser)} was declared implemented in a later version (${styleText('bold',String(parentValue))}) than the following sub-feature(s):`;
Copy file name to clipboardExpand all lines: lint/linter/test-flags.js
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
/* This file is a part of @mdn/browser-compat-data
2
2
* See LICENSE file for more information. */
3
3
4
-
importchalkfrom'chalk-template';
4
+
import{styleText}from'node:util';
5
+
5
6
import{compare}from'compare-versions';
6
7
7
8
/** @import {Linter, LinterData} from '../types.js' */
@@ -133,11 +134,7 @@ export default {
133
134
134
135
for(consterroroferrors){
135
136
logger.error(
136
-
chalk`Irrelevant flag data detected for {bold ${
137
-
error.browser
138
-
}}. Remove statement with {bold ${error.flagData
139
-
.map((flag)=>flag.name)
140
-
.join(', ')}} flag`,
137
+
`Irrelevant flag data detected for ${styleText('bold',error.browser)}. Remove statement with ${styleText('bold',error.flagData.map((flag)=>flag.name).join(', '))} flag`,
0 commit comments