To prohibit code like this.$log
.
The following config doesn't work:
{ 'no-restricted-properties': [ 2, { object: 'this', property: '$log', }, ], }
https://stackoverflow.com/questions/65432897/eslint-how-to-restrict-property-of-this December 24, 2020 at 09:24AM
没有评论:
发表评论