Skip to content

Commit 493e275

Browse files
committed
fix: ignore HTTP code-like object members
fixes: #8383 Signed-off-by: Rifa Achrinza <[email protected]>
1 parent efe50a2 commit 493e275

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` or `application/json`
187+
// For members such as `Content-Type` or `application/json` or `200`
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: '[0-9-/ ]',
195195
match: true,
196196
},
197197
},

0 commit comments

Comments
 (0)