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.
* @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 = {
renderers: [],
renderersStatic: [],

View file

@ -213,7 +213,7 @@ export const serve_style = {
reportFont,
) {
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 validationErrors = validateStyleMin(styleJSON);

View file

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