Skip to content

Commit

Permalink
refactor/polish ~ npx prettier --write . reformat with updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Apr 21, 2024
1 parent 956fd13 commit 6b68855
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/XDGAppPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function Adapt(adapter_: Platform.Adapter): { readonly XDGAppPaths: XDGAppPaths
];
const nameFallback = '$eval';
const name = path.parse(
(namePriorityList.find((e) => isString(e)) ?? nameFallback) + suffix
(namePriorityList.find((e) => isString(e)) ?? nameFallback) + suffix,
).name;

XDGAppPaths.$name = function $name() {
Expand Down
6 changes: 3 additions & 3 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ if (!process.env.npm_config_test_dist) {
if (error === null && status === 0) {
t.log(
util.inspect(script, /* showHidden */ void 0, /* depth */ void 0, /* color */ true),
`(exit_status=${status})`
`(exit_status=${status})`,
);
} else {
t.log({ script, error, status, stdout, stderr });
Expand Down Expand Up @@ -235,7 +235,7 @@ if (!process.env.npm_config_test_dist) {
if (error === null && status === 0) {
t.log(
util.inspect(script, /* showHidden */ void 0, /* depth */ void 0, /* color */ true),
`(exit_status=${status})`
`(exit_status=${status})`,
);
} else {
t.log({ script, error, status, stdout, stderr });
Expand Down Expand Up @@ -279,7 +279,7 @@ if (!process.env.npm_config_test_dist) {
if (error === null && status === 0) {
t.log(
util.inspect(script, /* showHidden */ void 0, /* depth */ void 0, /* color */ true),
`(exit_status=${status})`
`(exit_status=${status})`,
);
} else {
t.log({ script, basename, name, extension, nameExtension });
Expand Down
2 changes: 1 addition & 1 deletion test/types.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ expectType<typeof xdgAppPaths>(xdgAppPaths('MyApp'));
expectType<typeof xdgAppPaths>(xdgAppPaths({ name: 'MyApp', suffix: '-nodejs', isolated: false }));
expectType<typeof xdgAppPaths>(new xdgAppPaths('MyApp'));
expectType<typeof xdgAppPaths>(
new xdgAppPaths({ name: 'MyApp', suffix: '-nodejs', isolated: false })
new xdgAppPaths({ name: 'MyApp', suffix: '-nodejs', isolated: false }),
);

const paths = xdgAppPaths('MyApp');
Expand Down
2 changes: 1 addition & 1 deletion test/unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function xdgPathRegex(name) {
'(' +
// for windows, `name` may be embedded within the generated paths (instead of always trailing as in MacOS/*nix)
(isWinOS ? regexpEscape(path.sep) + '|' : '') +
'$)'
'$)',
);
}

Expand Down

0 comments on commit 6b68855

Please sign in to comment.