Within my typescript project, I am utilizing the following enum type:
export enum ModelAttributeTypes {
binary = 'binary',
binarySet = 'binarySet',
bool = 'bool',
list = 'list',
map = 'map',
number = 'number',
numberSet = 'numberSet',
string = 'string',
stringSet = 'stringSet',
_null = '_null'
}
However, I encounter a compilation error stating
Parsing error: Enum member names cannot start with lowercase 'a' through 'z'
.
As the enum type is automatically generated by a third-party framework, I cannot directly modify it myself.
Is there a way to disable this specific rule that is triggering the
Parsing error: Enum member names cannot start with lowercase 'a' through 'z'
message?
Below are the development dependencies related to TypeScript in my project:
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
… // Other dependencies listed
"typescript": "^4.3.5",
Here is the configuration for my eslint
:
{
"plugins": ["jest-dom"],
"extends": ["plugin:cypress/recommended", "plugin:jest-dom/recommended", "eslint:recommended"],
… // Other rules specified
"env": {
"browser": true,
"node": true,
"es6": true
}
}
And here is my tsconfig.json
file:
… // Configuration details specified
I am seeking assistance on why I am consistently facing the
Parsing error: Enum member names cannot start with lowercase 'a' through 'z'
issue and possible solutions to address it.