如何使用 ESLint
no-restricted-syntax
this
rules: { "no-restricted-syntax": ["error", "FunctionExpression[returnType.typeAnnotation.type='TSThisType']"], }
https://eslint.org/docs/latest/rules/no-restricted-syntax