From 159613bdb54d2d4a4919b6047c4e7175aa298bbc Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 19 Jan 2021 16:30:26 +0100 Subject: [PATCH] MOBILE-3609 lint: Allow underscores in private --- .eslintrc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index e5a4a4906..e0a5c3017 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -102,6 +102,12 @@ const appConfig = { selector: 'property', format: ['camelCase'], }, + { + selector: 'property', + modifiers: ['private'], + format: ['camelCase'], + leadingUnderscore: 'allow', + }, ], '@typescript-eslint/no-empty-function': 'error', '@typescript-eslint/no-empty-interface': 'off', @@ -201,7 +207,6 @@ const appConfig = { 'no-new-wrappers': 'error', 'no-sequences': 'error', 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'error', 'no-unused-labels': 'error', 'no-var': 'error', 'object-curly-spacing': ['error', 'always'],