From 2ebfc026b61a5771ba49ec8ea75156c5c285d168 Mon Sep 17 00:00:00 2001 From: Alexander Dyuzhikov Date: Mon, 4 Apr 2022 11:27:34 +0300 Subject: [PATCH] feat(eslint): add pascal case for enums --- eslint/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint/index.js b/eslint/index.js index f986bc4..774f532 100644 --- a/eslint/index.js +++ b/eslint/index.js @@ -141,6 +141,10 @@ module.exports = { '@typescript-eslint/type-annotation-spacing': 'error', '@typescript-eslint/member-delimiter-style': 'error', '@typescript-eslint/consistent-type-assertions': 'error', + '@typescript-eslint/naming-convention': [ + 'error', + { selector: 'enumMember', format: ['PascalCase'] }, + ], '@typescript-eslint/no-array-constructor': 'error', '@typescript-eslint/no-empty-interface': 'error', '@typescript-eslint/no-shadow': 'warn',