-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Labels
documentationDocumentation ("docs") that needs adding/updatingDocumentation ("docs") that needs adding/updatingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
{
rules: {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: [
'strictCamelCase'
],
leadingUnderscore: 'allow',
trailingUnderscore: 'allow'
}
}
}
}
response.writeHead(413, {
'Retry-After': retryAfterOn413
});
Expected Result
I expected the rule to ignore quoted object keys or have a way to ignore them. I think the old camelcase rule ignored such case.
Actual Result
✖ 16:3 Property name Retry-After must match one of the following formats: strictCamelCase @typescript-eslint/naming-convention
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.17.0 |
@typescript-eslint/parser |
2.17.0 |
TypeScript |
3.7.5 |
ESLint |
6.8.0 |
node |
10.17.0 |
npm |
6.13.6 |
danielsanfr
Metadata
Metadata
Assignees
Labels
documentationDocumentation ("docs") that needs adding/updatingDocumentation ("docs") that needs adding/updatingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin