You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have all the HTTP Status Codes in an Enum. This maces it easier to reference them and also immediately see what this code means.
The Enum Looks like this:
enumHTTPStatusCode{/// <ommited>'Bad Request'=400,Unauthorized=401,'Payment Required'=402,Forbidden=403,'Not Found'=404,'Method Not Allowed'=405,'Not Acceptable'=406,/// <ommited>}
As you see, there are spaces in the Keys.
So if i reference them, it looks like this: HTTPStatusCode['Bad Request']
If i use the same Code to often, i'll get the no-duplicate-string warning
Suggested rule-extension:
"no-duplicate-string": true, // Keep current behaivor"no-duplicate-string": [true, "ignore-keynames"], // Ignore strings which are keynames
I want to request a feature.
I have all the HTTP Status Codes in an Enum. This maces it easier to reference them and also immediately see what this code means.
The Enum Looks like this:
As you see, there are spaces in the Keys.
So if i reference them, it looks like this:
HTTPStatusCode['Bad Request']If i use the same Code to often, i'll get the no-duplicate-string warning
Suggested rule-extension: