Skip to content

Commit

Permalink
mob
Browse files Browse the repository at this point in the history
Co-Authored-By: Jamie B <[email protected]>
Co-Authored-By: Max Duval <[email protected]>
Co-Authored-By: Ioanna Kokkini <[email protected]>
Co-Authored-By: Anna Beddow <[email protected]>
Co-Authored-By: George B <[email protected]>
Co-Authored-By: Dominik Lander <[email protected]>
  • Loading branch information
7 people committed Jun 6, 2024
1 parent b73f737 commit 007f1bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ validate-javascript: install # PRIVATE

# Fix JS linting errors.
fix: install
@./tools/task-runner/runner.mjs validate/javascript-fix
@./tools/task-runner/runner.mjs validate/javascript-fix.mjs
@yarn prettier */test/resources/*.json --write

# Fix committed JS linting errors.
fix-commits: install
@./tools/task-runner/runner.mjs validate-head/javascript-fix
@./tools/task-runner/runner.mjs validate-head/javascript-fix.mjs

# Update caniuse db used by browserslist
# https://github.com/browserslist/update-db
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const execa = require('execa');
import execa from 'execa';

const config = ['--quiet', '--color', '--fix'];

const handleSuccess = ctx => {
ctx.messages.push("Don't forget to commit any fixes...");
};

module.exports = {
description: 'Fix JS linting errors',
task: [

export const description = 'Fix JS linting errors';
export const task = [
{
description: 'Fix static/src',
task: ctx =>
Expand All @@ -29,6 +29,6 @@ module.exports = {
].concat(config)
).then(handleSuccess.bind(null, ctx)),
},
],
concurrent: true,
};
];
export const concurrent = true;

2 changes: 1 addition & 1 deletion tools/task-runner/runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const getTasksFromModule = (taskName) => {
};

// get a list of the tasks we're going to run
const taskModules = TASKS.map(getTasksFromModule);
const taskModules = await Promise.all(TASKS.map(getTasksFromModule));

// run them!
listrify(taskModules).run({
Expand Down

0 comments on commit 007f1bb

Please sign in to comment.