feat: enable no-invalid-this (#173)

This commit is contained in:
曾明健 2023-04-18 19:42:48 +08:00 committed by GitHub
parent e28861a247
commit ff74d69719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,7 @@ module.exports = {
'no-with': 'error',
'no-void': 'error',
'no-useless-escape': 'off',
'no-invalid-this': 'error',
'vars-on-top': 'error',
'require-await': 'off',
'no-return-assign': 'off',

View File

@ -114,6 +114,8 @@ module.exports = {
],
offsetTernaryExpressions: true,
}],
'no-invalid-this': 'off',
'@typescript-eslint/no-invalid-this': 'error',
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
'no-use-before-define': 'off',