mirror of https://github.com/webpack/webpack.git
chore: small fixes
This commit is contained in:
parent
de6d4b2f4c
commit
9d899d41c9
|
@ -161,7 +161,7 @@ jobs:
|
||||||
yarn --frozen-lockfile --ignore-engines
|
yarn --frozen-lockfile --ignore-engines
|
||||||
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
|
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
|
||||||
- run: |
|
- 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
|
yarn --frozen-lockfile
|
||||||
if: matrix.node-version == '16.x'
|
if: matrix.node-version == '16.x'
|
||||||
# Install main version of our deps
|
# Install main version of our deps
|
||||||
|
|
|
@ -85,7 +85,6 @@ module.exports = [
|
||||||
],
|
],
|
||||||
"jsdoc/check-alignment": "off",
|
"jsdoc/check-alignment": "off",
|
||||||
"jsdoc/tag-lines": "off",
|
"jsdoc/tag-lines": "off",
|
||||||
// TODO enable me
|
|
||||||
"jsdoc/valid-types": "off",
|
"jsdoc/valid-types": "off",
|
||||||
// TODO remove me after switch to typescript strict mode
|
// TODO remove me after switch to typescript strict mode
|
||||||
"jsdoc/require-jsdoc": "off",
|
"jsdoc/require-jsdoc": "off",
|
||||||
|
|
|
@ -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
|
// real Object and Array types to. These types may occur in the wild too, e. g. when
|
||||||
// using Structured Clone in postMessage.
|
// using Structured Clone in postMessage.
|
||||||
if (exports.constructor !== Object) {
|
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);
|
const Fn = /** @type {typeof Function} */ (Obj.constructor);
|
||||||
for (const [type, config] of Array.from(jsTypes)) {
|
for (const [type, config] of Array.from(jsTypes)) {
|
||||||
if (type) {
|
if (type) {
|
||||||
|
|
Loading…
Reference in New Issue