From 41b3af0c3bd3c61ed61772160c6bbe8650474b82 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 8 Apr 2020 11:44:45 +0200 Subject: [PATCH] fix --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }], } }