From 68e632646fd207f36a0128f6201f8baca7900dce Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 21 May 2024 11:34:13 -0500 Subject: [PATCH] chore(eslint): add primer_react_ to list of allowed camelcase names (#4615) Co-authored-by: Josh Black --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index ed92672af6c..43ed40e5530 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -68,7 +68,11 @@ module.exports = { camelcase: [ 'error', { - allow: ['dark_dimmed'], + allow: [ + 'dark_dimmed', + // Allow feature flag names that start with `primer_react_` + '^primer_react_', + ], }, ], 'primer-react/no-deprecated-colors': ['warn', {checkAllStrings: true}],