diff --git a/index.js b/index.js index 4f21568..56814a5 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,12 @@ const getNamingConventionRule = ({isTsx}) => ({ '@typescript-eslint/naming-convention': [ 'error', + { + // Ignore `{'Retry-After': retryAfter}` type properties. + selector: ['classProperty', 'objectLiteralProperty', 'classMethod', 'objectLiteralMethod', 'typeMethod'], + format: null, + modifiers: ["requiresQuotes"] + }, { /// selector: ['variableLike', 'memberLike', 'property', 'method'], // Note: Leaving out `parameter` and `typeProperty` because of the mentioned known issues. @@ -14,12 +20,7 @@ const getNamingConventionRule = ({isTsx}) => ({ ].filter(Boolean), // We allow double underscore because of GraphQL type names and some React names. leadingUnderscore: 'allowSingleOrDouble', - trailingUnderscore: 'allow', - // Ignore `{'Retry-After': retryAfter}` type properties. - filter: { - regex: '[- ]', - match: false - } + trailingUnderscore: 'allow' }, { selector: 'typeLike',