Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default defineConfig([
"n/no-extraneous-import": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
"n/no-deprecated-api": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
"n/no-unpublished-import": "error",
"n/no-process-exit": "off", // https://github.com/eclipse-thingweb/node-wot/issues/1430
"n/no-process-exit": "error",
"n/hashbang": "warn",

// *************** Ensure that only used dependencies are imported ***************
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ program.action(async function (_, options, cmd) {
} catch (err) {
if ((err as NodeJS.ErrnoException)?.code !== "ENOENT" || options.configFile != null) {
error("node-wot configuration file error:\n%O\nClose.", err);
// eslint-disable-next-line n/no-process-exit
process.exit((err as NodeJS.ErrnoException).errno ?? 1);
}

Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class Executor {
} catch (error) {
// eslint-disable-next-line no-console
console.error("Error running WoT script:", error);
// eslint-disable-next-line n/no-process-exit
process.exit(1);
}
}
Expand Down
Loading