mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
chore: fix linting warnings (#12526)
This commit is contained in:
parent
36d8d921db
commit
8b0e36ca91
3 changed files with 9 additions and 9 deletions
6
.github/scripts/announce.mjs
vendored
6
.github/scripts/announce.mjs
vendored
|
@ -6,7 +6,7 @@ import { setOutput } from './utils.mjs';
|
|||
const { GITHUB_REF = 'main' } = process.env;
|
||||
const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);
|
||||
|
||||
const emojis = ['🎉', '🥳', '🚀', '🧑🚀', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
|
||||
const emojis = ['🎉', '🥳', '🚀', '🧑', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
|
||||
const descriptors = [
|
||||
'new releases',
|
||||
'hot and fresh updates',
|
||||
|
@ -141,7 +141,7 @@ async function generateMessage() {
|
|||
message += `\nAlso ${item(extraVerbs)}:`;
|
||||
|
||||
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}\``;
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ async function generateMessage() {
|
|||
|
||||
async function run() {
|
||||
const content = await generateMessage();
|
||||
console.log(content);
|
||||
console.info(content);
|
||||
setOutput('DISCORD_MESSAGE', content);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ export const defaultProject = 'project-name';
|
|||
* 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.
|
||||
* Usually after the first 10 `=` you'll want to add a title like `#### Test`.
|
||||
* @param {URL} projectDir
|
||||
* @param {URL} outputFile
|
||||
* @param {URL} _projectDir
|
||||
* @param {URL} _outputFile
|
||||
*/
|
||||
export async function run(projectDir, outputFile) {}
|
||||
export async function run(_projectDir, _outputFile) {}
|
||||
|
|
|
@ -101,11 +101,11 @@ export default async function build(...args) {
|
|||
console.error(dim(`[${date}] `) + red(error || result.errors.join('\n')));
|
||||
} else {
|
||||
if (result.warnings.length) {
|
||||
console.log(
|
||||
dim(`[${date}] `) + yellow('⚠ updated with warnings:\n' + result.warnings.join('\n')),
|
||||
console.info(
|
||||
dim(`[${date}] `) + yellow('! updated with warnings:\n' + result.warnings.join('\n')),
|
||||
);
|
||||
}
|
||||
console.log(dim(`[${date}] `) + green('✔ updated'));
|
||||
console.info(dim(`[${date}] `) + green('√ updated'));
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue