From 3b6d8355e90375704f459cdbc1adbba01b7d7ff6 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 24 Jan 2020 09:41:14 +0100 Subject: [PATCH] allow numbers in id --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fe6aa70..42232c8 100644 --- a/index.js +++ b/index.js @@ -144,7 +144,7 @@ module.exports = { 'block-spacing': ['error', 'always'], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], camelcase: 'off', - 'id-match': ['error', '^[a-z][a-z_]*$', { onlyDeclarations: true }], + 'id-match': ['error', '^[a-z][a-z0-9_]*$', { onlyDeclarations: true }], 'comma-dangle': ['error', 'never'], 'comma-spacing': 'error', 'comma-style': 'error',