chore: remove console.log, fix typo
MODIFY
internal/compiler/suppressions.test.ts
internal/compiler/suppressions.test.ts
@@ -157,7 +157,6 @@ test(
`,
);
- console.log(result);
t.is(result.suppressions.length, 4);
t.is(result.diagnostics.length, 1);

MODIFY
internal/css-parser/index.ts
internal/css-parser/index.ts
@@ -584,7 +584,6 @@ function consumeURLToken(
) {
const [newValue, newIndex] = consumeEscaped(parser, index);
index = newIndex;
- console.log(newValue);
value += newValue;
continue;
}

MODIFY
internal/css-parser/parser/declaration.ts
internal/css-parser/parser/declaration.ts
@@ -59,7 +59,6 @@ export function parseDeclaration(
): CSSDeclaration | undefined {
while (!matchEndOfDeclaration(parser, endingTokenType)) {
const currentToken = parser.getToken();
- console.log(currentToken);
if (currentToken.type !== "Ident") {
parser.unexpectedDiagnostic({
description: descriptions.CSS_PARSER.INVALID_DECLARATION,

MODIFY
internal/css-parser/parser/keyframe.ts
internal/css-parser/parser/keyframe.ts
@@ -109,7 +109,7 @@ function parseKeyframeSelector(
);
} else {
parser.unexpectedDiagnostic({
- description: descriptions.CSS_PARSER.UNKNOW_KEYFRAME_SELECTOR_NAME,
+ description: descriptions.CSS_PARSER.UNKNOWN_KEYFRAME_SELECTOR_NAME,
token: parser.getToken(),
});
nextToken(parser);

MODIFY
internal/css-parser/parser/value.ts
internal/css-parser/parser/value.ts
@@ -7,7 +7,6 @@ import {parseFunction} from "@internal/css-parser/parser/function";
import {parseUrl} from "@internal/css-parser/parser/url";
export function parseComponentValue(parser: CSSParser): AnyCSSValue | undefined {
- console.log("value", parser.getToken());
if (
matchToken(parser, "LeftCurlyBracket") ||
matchToken(parser, "LeftParen") ||

MODIFY
internal/diagnostics/descriptions/parsers/cssParser.ts
internal/diagnostics/descriptions/parsers/cssParser.ts
@@ -44,7 +44,7 @@ export const cssParser = createDiagnosticsCategory({
},
],
}),
- UNKNOW_KEYFRAME_SELECTOR_NAME: {
+ UNKNOWN_KEYFRAME_SELECTOR_NAME: {
message: markup`The selector name of the keyframe is not correct.`,
advice: [
{

chore: remove console.log, fix typo (#1368)