2020年12月23日星期三

ESLint - How to restrict property of `this`

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

没有评论:

发表评论