eslint 函数参数未使用不报错

'no-unused-vars': [
    'error',
    // we are only using this rule to check for unused arguments since TS
    // catches unused variables but not args.
    { varsIgnorePattern: '.*', args: 'none' },
],
posted @ 2022-01-30 10:00  guangzan  阅读(627)  评论(0)    收藏  举报