Skip to content

Commit

Permalink
chore: fix linting warnings (#12526)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Nov 26, 2024
1 parent 36d8d92 commit 8b0e36c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/announce.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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}\``;
}

Expand All @@ -159,7 +159,7 @@ async function generateMessage() {

async function run() {
const content = await generateMessage();
console.log(content);
console.info(content);
setOutput('DISCORD_MESSAGE', content);
}

Expand Down
6 changes: 3 additions & 3 deletions benchmark/bench/_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
6 changes: 3 additions & 3 deletions scripts/cmd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
});
},
Expand Down

0 comments on commit 8b0e36c

Please sign in to comment.