You can also make it a warning instead of an error by setting it to 1 (2 is error).
If you really need to disable this rule for your entire project, then in your .eslintrc's "rules" section set the value for this rule to 0:
rules: {
"no-new": 0,
}
网友评论