Files
NapCatQQ/.pnpm-store/v3/files/43/456fd8ecb99eb6fc45f290efb7c61fac717305d368e27ff2c677c838753440c40aabe33c0be824b1b4a736705420e58ebf088f3771b666251a8892a7231c73
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

30 lines
793 B
Plaintext

/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow optional `catch` binding.",
category: "ES2019",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-optional-catch-binding.html",
},
fixable: null,
messages: {
forbidden: "ES2019 optional 'catch' binding is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"CatchClause[param=null]"(node) {
context.report({ node, messageId: "forbidden" })
},
}
},
}