Skip to content

Commit ff74d69

Browse files
authoredApr 18, 2023
feat: enable no-invalid-this (#173)
1 parent e28861a commit ff74d69

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎packages/eslint-config-basic/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ module.exports = {
310310
'no-with': 'error',
311311
'no-void': 'error',
312312
'no-useless-escape': 'off',
313+
'no-invalid-this': 'error',
313314
'vars-on-top': 'error',
314315
'require-await': 'off',
315316
'no-return-assign': 'off',

‎packages/eslint-config-ts/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ module.exports = {
114114
],
115115
offsetTernaryExpressions: true,
116116
}],
117+
'no-invalid-this': 'off',
118+
'@typescript-eslint/no-invalid-this': 'error',
117119
'no-redeclare': 'off',
118120
'@typescript-eslint/no-redeclare': 'error',
119121
'no-use-before-define': 'off',

0 commit comments

Comments
 (0)
Please sign in to comment.