Skip to content

Commit

Permalink
chore: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jun 11, 2024
1 parent de6d4b2 commit 9d899d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
yarn --frozen-lockfile --ignore-engines
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
- run: |
yarn upgrade eslint-plugin-jest@~28.4.0 eslint-plugin-jsdoc@^47.0.0 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 nyc@^15.1.0 @eslint/js@^8
yarn upgrade eslint-plugin-jest@~28.4.0 eslint-plugin-jsdoc@^47.0.0 husky@^8.0.3 lint-staged@^13.2.1 cspell@^6.31.1 open-cli@^7.2.0 nyc@^15.1.0 eslint@^8 @eslint/js@^8
yarn --frozen-lockfile
if: matrix.node-version == '16.x'
# Install main version of our deps
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ module.exports = [
],
"jsdoc/check-alignment": "off",
"jsdoc/tag-lines": "off",
// TODO enable me
"jsdoc/valid-types": "off",
// TODO remove me after switch to typescript strict mode
"jsdoc/require-jsdoc": "off",
Expand Down
3 changes: 2 additions & 1 deletion lib/serialization/ObjectMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ jsTypes.set(TypeError, new ErrorObjectSerializer(TypeError));
// real Object and Array types to. These types may occur in the wild too, e. g. when
// using Structured Clone in postMessage.
if (exports.constructor !== Object) {
const Obj = /** @type {typeof object} */ (exports.constructor);
// eslint-disable-next-line jsdoc/check-types
const Obj = /** @type {typeof Object} */ (exports.constructor);
const Fn = /** @type {typeof Function} */ (Obj.constructor);
for (const [type, config] of Array.from(jsTypes)) {
if (type) {
Expand Down

0 comments on commit 9d899d4

Please sign in to comment.