diff --git a/packages/eslint-plugin/src/rules/naming-convention.ts b/packages/eslint-plugin/src/rules/naming-convention.ts index 20d80048f545..03500d825163 100644 --- a/packages/eslint-plugin/src/rules/naming-convention.ts +++ b/packages/eslint-plugin/src/rules/naming-convention.ts @@ -60,11 +60,6 @@ const defaultCamelCaseAllTheThingsConfig: Options = [ format: ['PascalCase'], selector: 'typeLike', }, - - { - format: ['PascalCase'], - selector: 'enumMember', - }, ]; export default createRule({ diff --git a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts index 8ca4dc6014ad..c43b293c686e 100644 --- a/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts +++ b/packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts @@ -1301,32 +1301,6 @@ ruleTester.run('naming-convention', rule, { }, ], }, - { - code: ` - const enum SearchIndexType { - title = 1, - heading = 2, - } - `, - errors: [ - { - data: { - formats: 'PascalCase', - name: 'title', - type: 'Enum Member', - }, - messageId: 'doesNotMatchFormat', - }, - { - data: { - formats: 'PascalCase', - name: 'heading', - type: 'Enum Member', - }, - messageId: 'doesNotMatchFormat', - }, - ], - }, ], valid: [ { @@ -2317,13 +2291,5 @@ ruleTester.run('naming-convention', rule, { }, ], }, - { - code: ` - const enum SearchIndexType { - Title = 1, - Heading = 2, - } - `, - }, ], });