Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Oct 13, 2023
1 parent 59829c4 commit 1f54001
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/ts/shared/internal-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function fetchBpmnContent(url: string): Promise<string> {
log(`Fetching BPMN content from url ${url}`);
const response = await fetch(url);
if (!response.ok) {
throw Error(`HTTP status ${response.status}`);
throw new Error(`HTTP status ${response.status}`);
}
return await response.text();
}
1 change: 1 addition & 0 deletions src/model/bpmn/internal/shape/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { ShapeBpmnElementKind, ShapeBpmnEventDefinitionKind } from './kinds';
* @category BPMN
* @experimental
*/
// eslint-disable-next-line unicorn/no-static-only-class -- Breaking change on API
export class ShapeUtil {
static isEvent(kind: ShapeBpmnElementKind | string): boolean {
return isKindOf(EVENT_KINDS, kind);
Expand Down
2 changes: 1 addition & 1 deletion test/config/ts-jest.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

// Inspired from https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping/
const fs = require('fs');
const fs = require('node:fs');

const JSON5 = require('json5');
const { pathsToModuleNameMapper } = require('ts-jest');
Expand Down

0 comments on commit 1f54001

Please sign in to comment.