代码拉取完成,页面将自动刷新
{
"rules": {
"@typescript-eslint/no-restricted-syntax": [
// Alarm level: Enumeration type, supports configuration as error, warn, off
"error",
{
// The selector attribute is mandatory. Configure the syntax to be disabled
// The statements to be restricted can be filtered through a specific DSL. The CallExpression represents the method call expression, and the square brackets behind it are the filtering conditions (determined according to the Node of the syntax tree).
// Among them, callee.oobject.name filters the objects (class, namespace, or module) that call the method based on the specified name, which is "Foo" in the above example
// Callee-propey.name filters the called methods based on the specified name, which is "bar" in the above example
"selector": "CallExpression[callee.object.name='Foo'][callee.property.name='bar']",
// The message attribute is optional, configure the error message to be displayed
"message": "Foo.bar() is not allowed"
}
]
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。