0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

chore: fix linting warnings (#12526)

This commit is contained in:
Emanuele Stoppa 2024-11-26 13:06:04 +00:00 committed by GitHub
parent 36d8d921db
commit 8b0e36ca91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -6,7 +6,7 @@ import { setOutput } from './utils.mjs';
const { GITHUB_REF = 'main' } = process.env; const { GITHUB_REF = 'main' } = process.env;
const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`); const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);
const emojis = ['🎉', '🥳', '🚀', '🧑‍🚀', '🎊', '🏆', '✅', '🤩', '🤖', '🙌']; const emojis = ['🎉', '🥳', '🚀', '🧑', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
const descriptors = [ const descriptors = [
'new releases', 'new releases',
'hot and fresh updates', 'hot and fresh updates',
@ -141,7 +141,7 @@ async function generateMessage() {
message += `\nAlso ${item(extraVerbs)}:`; message += `\nAlso ${item(extraVerbs)}:`;
const remainingPackages = packages.filter((p) => p.name !== name); const remainingPackages = packages.filter((p) => p.name !== name);
for (const { name, version, url } of remainingPackages) { for (const { name, version, _url } of remainingPackages) {
message += `\n\`${name}@${version}\``; message += `\n\`${name}@${version}\``;
} }
@ -159,7 +159,7 @@ async function generateMessage() {
async function run() { async function run() {
const content = await generateMessage(); const content = await generateMessage();
console.log(content); console.info(content);
setOutput('DISCORD_MESSAGE', content); setOutput('DISCORD_MESSAGE', content);
} }

View file

@ -6,7 +6,7 @@ export const defaultProject = 'project-name';
* Use `console.log` to report the results too. Logs that start with 10 `=` * Use `console.log` to report the results too. Logs that start with 10 `=`
* and end with 10 `=` will be extracted by CI to display in the PR comment. * and end with 10 `=` will be extracted by CI to display in the PR comment.
* Usually after the first 10 `=` you'll want to add a title like `#### Test`. * Usually after the first 10 `=` you'll want to add a title like `#### Test`.
* @param {URL} projectDir * @param {URL} _projectDir
* @param {URL} outputFile * @param {URL} _outputFile
*/ */
export async function run(projectDir, outputFile) {} export async function run(_projectDir, _outputFile) {}

View file

@ -101,11 +101,11 @@ export default async function build(...args) {
console.error(dim(`[${date}] `) + red(error || result.errors.join('\n'))); console.error(dim(`[${date}] `) + red(error || result.errors.join('\n')));
} else { } else {
if (result.warnings.length) { if (result.warnings.length) {
console.log( console.info(
dim(`[${date}] `) + yellow(' updated with warnings:\n' + result.warnings.join('\n')), dim(`[${date}] `) + yellow('! updated with warnings:\n' + result.warnings.join('\n')),
); );
} }
console.log(dim(`[${date}] `) + green(' updated')); console.info(dim(`[${date}] `) + green(' updated'));
} }
}); });
}, },