From 4d669789c0a57ed065dd1dec65c845ad0cde890e Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 24 Jun 2020 10:23:15 +0200 Subject: [PATCH] allow pascal case --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 83a24f4..4a73aa0 100644 --- a/index.js +++ b/index.js @@ -127,7 +127,7 @@ module.exports = { 'block-spacing': ['error', 'always'], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], camelcase: 'off', - 'id-match': ['error', '^[a-z][a-z0-9_]*$', { onlyDeclarations: true }], + 'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]+)$', { onlyDeclarations: true }], 'comma-dangle': ['error', 'never'], 'comma-spacing': 'error', 'comma-style': 'error',