Skip to content

Commit 8bc80d3

Browse files
Revert "feat(eslint-plugin): [naming-convention] add enumMember PascalCase default option (typescript-eslint#11127)"
This reverts commit b872e2b.
1 parent 8dc8340 commit 8bc80d3

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

packages/eslint-plugin/src/rules/naming-convention.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ const defaultCamelCaseAllTheThingsConfig: Options = [
6060
format: ['PascalCase'],
6161
selector: 'typeLike',
6262
},
63-
64-
{
65-
format: ['PascalCase'],
66-
selector: 'enumMember',
67-
},
6863
];
6964

7065
export default createRule<Options, MessageIds>({

packages/eslint-plugin/tests/rules/naming-convention/naming-convention.test.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,32 +1301,6 @@ ruleTester.run('naming-convention', rule, {
13011301
},
13021302
],
13031303
},
1304-
{
1305-
code: `
1306-
const enum SearchIndexType {
1307-
title = 1,
1308-
heading = 2,
1309-
}
1310-
`,
1311-
errors: [
1312-
{
1313-
data: {
1314-
formats: 'PascalCase',
1315-
name: 'title',
1316-
type: 'Enum Member',
1317-
},
1318-
messageId: 'doesNotMatchFormat',
1319-
},
1320-
{
1321-
data: {
1322-
formats: 'PascalCase',
1323-
name: 'heading',
1324-
type: 'Enum Member',
1325-
},
1326-
messageId: 'doesNotMatchFormat',
1327-
},
1328-
],
1329-
},
13301304
],
13311305
valid: [
13321306
{
@@ -2317,13 +2291,5 @@ ruleTester.run('naming-convention', rule, {
23172291
},
23182292
],
23192293
},
2320-
{
2321-
code: `
2322-
const enum SearchIndexType {
2323-
Title = 1,
2324-
Heading = 2,
2325-
}
2326-
`,
2327-
},
23282294
],
23292295
});

0 commit comments

Comments
 (0)