diff --git a/index.js b/index.js index 28be6be..df76cdf 100644 --- a/index.js +++ b/index.js @@ -32,6 +32,7 @@ module.exports = { { selector: 'default', format: ['snake_case'] }, { selector: 'memberLike', modifiers: ['private'], format: ['snake_case'], leadingUnderscore: 'require' }, { selector: 'typeLike', format: ['PascalCase'] } - ] + ], + 'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }], } }