fixed linting issues

This commit is contained in:
Yoel Ridgway-Lopez 2025-02-10 17:35:55 +01:00
parent 166130d142
commit 61422e171f
3 changed files with 11 additions and 5 deletions

View file

@ -1032,7 +1032,15 @@ export const serve_rendered = {
* @param {Function} dataResolver Function to resolve data. * @param {Function} dataResolver Function to resolve data.
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
add: async function (options, repo, params, id, programOpts, style, dataResolver) { add: async function (
options,
repo,
params,
id,
programOpts,
style,
dataResolver,
) {
const map = { const map = {
renderers: [], renderers: [],
renderersStatic: [], renderersStatic: [],

View file

@ -213,7 +213,7 @@ export const serve_style = {
reportFont, reportFont,
) { ) {
const { publicUrl } = programOpts; const { publicUrl } = programOpts;
const styleFile = path.resolve(options.paths.styles, params.style) const styleFile = path.resolve(options.paths.styles, params.style);
const styleJSON = clone(style); const styleJSON = clone(style);
const validationErrors = validateStyleMin(styleJSON); const validationErrors = validateStyleMin(styleJSON);

View file

@ -191,7 +191,6 @@ async function start(opts) {
throw new Error(`fetch error ${res.status}`); throw new Error(`fetch error ${res.status}`);
} }
styleJSON = await res.json(); styleJSON = await res.json();
} else { } else {
const styleFile = path.resolve(options.paths.styles, item.style); const styleFile = path.resolve(options.paths.styles, item.style);
const styleFileData = await fs.promises.readFile(styleFile); const styleFileData = await fs.promises.readFile(styleFile);
@ -302,7 +301,6 @@ async function start(opts) {
console.log(`Missing "style" property for ${id}`); console.log(`Missing "style" property for ${id}`);
continue; continue;
} }
startupPromises.push(addStyle(id, item, true, true)); startupPromises.push(addStyle(id, item, true, true));
} }
startupPromises.push( startupPromises.push(