From 6e08dfaaeb073186a925ef3671056958ba166db5 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 8 Apr 2020 11:07:42 +0200 Subject: [PATCH] disallow pascalcase --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 37a4162..ff30111 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ module.exports = { 'block-spacing': ['error', 'always'], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], camelcase: 'off', - 'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }], + 'id-match': ['error', '^[a-z][a-z0-9_]*$', { onlyDeclarations: true }], 'comma-dangle': ['error', 'never'], 'comma-spacing': 'error', 'comma-style': 'error',