Files
NapCatQQ/.pnpm-store/v3/files/a9/15ba9ff783988c92a63caf77f7f163c0cfe584f25e699a04e7886a78d5ddec8c52c8a989d39296ec65acd492b292325fab822096d66d0c1dd44dc52d9e5f3c
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

47 lines
1.3 KiB
Plaintext

"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description: "disallow the `Array.prototype.with` method.",
category: "ES2023",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-with.html",
},
fixable: null,
messages: {
forbidden: "ES2023 '{{name}}' method is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
Array: ["with"],
Int8Array: ["with"],
Uint8Array: ["with"],
Uint8ClampedArray: ["with"],
Int16Array: ["with"],
Uint16Array: ["with"],
Int32Array: ["with"],
Uint32Array: ["with"],
Float32Array: ["with"],
Float64Array: ["with"],
BigInt64Array: ["with"],
BigUint64Array: ["with"],
})
},
}