Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Dec 8, 2023
1 parent d131cce commit aca83b8
Show file tree
Hide file tree
Showing 4 changed files with 1,154 additions and 301 deletions.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@babel/plugin-transform-runtime": "^7.13.6",
"@babel/preset-env": "^7.13.0",
"@babel/runtime": "^7.13.6",
"@mll-lab/eslint-config": "^1.19.0",
"@mll-lab/eslint-plugin": "^1.3.1",
"@mll-lab/eslint-config": "^3.1.0",
"@mll-lab/eslint-plugin": "^1.3.4",
"@mll-lab/prettier-config": "^1.0.0",
"@mll-lab/tsconfig": "^1.1.0",
"@rollup/plugin-babel": "^5.3.0",
Expand All @@ -60,11 +60,16 @@
"@types/jest": "^26.0.20",
"@types/lodash": "4.14.136",
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-require-context-hook": "^1.0.0",
"eslint": "^8.55.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"prettier": "^3.1.0",
"rollup": "^2.45.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"semantic-release": "^17.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/device.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('isMobileDevice', () => {
() =>
({
userAgent: 'Android',
} as Navigator & typeof global),
}) as Navigator & typeof global,
);
expect(isMobileDevice()).toBeTruthy();
});
Expand All @@ -16,7 +16,7 @@ describe('isMobileDevice', () => {
() =>
({
userAgent: 'Firefox',
} as Navigator & typeof global),
}) as Navigator & typeof global,
);
expect(isMobileDevice()).toBeFalsy();
});
Expand Down
8 changes: 5 additions & 3 deletions src/promise.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ describe('mapSequentially', () => {
});

it('throws and aborts if callback throws', async () => {
const callback = jest.fn().mockImplementation((value) => {
throw new Error(value);
});
const callback = jest
.fn()
.mockImplementation((value: string | undefined) => {
throw new Error(value);
});

const foo = 'foo';
await expect(async () => {
Expand Down
Loading

0 comments on commit aca83b8

Please sign in to comment.