style: prettier

This commit is contained in:
Gregor Martynus
2023-01-13 15:55:40 -08:00
parent 12a981c020
commit b06c9bbe4c
35 changed files with 1383 additions and 1344 deletions
+1 -1
View File
@@ -1 +1 @@
export default () => {}
export default () => {};
+3 -3
View File
@@ -1,4 +1,4 @@
import SemanticReleaseError from '@semantic-release/error';
import SemanticReleaseError from "@semantic-release/error";
class InheritedError extends SemanticReleaseError {
constructor(message, code) {
@@ -10,5 +10,5 @@ class InheritedError extends SemanticReleaseError {
}
export default () => {
throw new InheritedError('Inherited error', 'EINHERITED');
}
throw new InheritedError("Inherited error", "EINHERITED");
};
+3 -3
View File
@@ -1,5 +1,5 @@
export default () => {
const error = new Error('a');
error.errorProperty = 'errorProperty';
const error = new Error("a");
error.errorProperty = "errorProperty";
throw error;
}
};
+3 -3
View File
@@ -1,5 +1,5 @@
import AggregateError from 'aggregate-error';
import AggregateError from "aggregate-error";
export default () => {
throw new AggregateError([new Error('a'), new Error('b')]);
}
throw new AggregateError([new Error("a"), new Error("b")]);
};
+1 -1
View File
@@ -1 +1 @@
export default (pluginConfig, context) => context
export default (pluginConfig, context) => context;
+2 -2
View File
@@ -1,6 +1,6 @@
export default (pluginConfig, {env, logger}) => {
export default (pluginConfig, { env, logger }) => {
console.log(`Console: Exposing token ${env.MY_TOKEN}`);
logger.log(`Log: Exposing token ${env.MY_TOKEN}`);
logger.error(`Error: Console token ${env.MY_TOKEN}`);
throw new Error(`Throw error: Exposing ${env.MY_TOKEN}`);
}
};
+1 -1
View File
@@ -1 +1 @@
export default (pluginConfig, context) => ({pluginConfig, context})
export default (pluginConfig, context) => ({ pluginConfig, context });