Skip to content

Commit

Permalink
fix(@typescript-eslint): use naming-convention for interface naming
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 20, 2020
1 parent ef2b574 commit 32a4b95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion @typescript-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const config = {
'@typescript-eslint/default-param-last': 'error',
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/interface-name-prefix': 'off',
// eslint-disable-next-line local/prefer-valid-rules
'@typescript-eslint/member-naming': [
'warn',
Expand All @@ -31,7 +32,12 @@ const config = {
custom: { match: true, regex: /^T([A-Z][a-zA-Z]+)$|^[A-Z]$/u.source }
},
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE'] },
{ selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] }
{ selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] },
{
selector: 'interface',
format: ['PascalCase'], // disallow "I" prefixing, but allow names like "IAM"
custom: { match: false, regex: /^I[A-Z][a-z]/u.source }
}
],
'@typescript-eslint/no-dynamic-delete': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
Expand Down

0 comments on commit 32a4b95

Please sign in to comment.