Skip to content

Commit f282dca

Browse files
committed
fix: ignore MIME type-like object members
fixes: #8383 see: typescript-eslint/typescript-eslint#4582 Signed-off-by: Rifa Achrinza <[email protected]>
1 parent 9c6c674 commit f282dca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-config/eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ module.exports = {
184184
leadingUnderscore: 'allow',
185185
},
186186

187-
// For members such as `Content-Type`
187+
// For members such as `Content-Type` or `application/json`
188188
{
189189
selector: 'memberLike',
190190
format: null,
191191
filter: {
192192
// you can expand this regex as you find more cases that require
193193
// quoting that you want to allow
194-
regex: '[- ]',
194+
regex: '[-/ ]',
195195
match: true,
196196
},
197197
},

0 commit comments

Comments
 (0)