Skip to content

Commit 60c6062

Browse files
committed
Disable @typescript-eslint/method-signature-style rule
1 parent 7a42357 commit 60c6062

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,14 @@ module.exports = {
191191
}
192192
],
193193
'@typescript-eslint/member-ordering': 'error',
194-
'@typescript-eslint/method-signature-style': 'error',
194+
195+
// Disabled for now as it causes too many weird TypeScript issues. I'm not sure whether the problems are caused by bugs in TS or problems in my types.
196+
// TODO: Try to re-enable this again in 2022.
197+
// '@typescript-eslint/method-signature-style': 'error',
198+
195199
// We use `@typescript-eslint/naming-convention` in favor of `camelcase`.
196200
camelcase: 'off',
197201
// TODO: Enable this again when the following is fixed:
198-
// - https://github.com/typescript-eslint/typescript-eslint/issues/1483
199202
// - https://github.com/typescript-eslint/typescript-eslint/issues/1485
200203
// - https://github.com/typescript-eslint/typescript-eslint/issues/1484
201204
// TODO: Prevent `_` prefix on private fields when TypeScript 3.8 is out.
@@ -207,7 +210,12 @@ module.exports = {
207210
// 'strictCamelCase'
208211
// ],
209212
// leadingUnderscore: 'allow',
210-
// trailingUnderscore: 'allow'
213+
// trailingUnderscore: 'allow',
214+
// // Ignore `{'Retry-After': retryAfter}` type properties.
215+
// filter: {
216+
// regex: '[- ]',
217+
// match: false
218+
// }
211219
// },
212220
// {
213221
// selector: 'typeLike',

0 commit comments

Comments
 (0)