hello there 👋🏽
We're actively working to adopt github/recommended and github/typescript rules. Typescript enums are widely used in our repository, however, the recommended GitHub plugin yields a no-shadow error for every enum occurrence.
repro:
export enum DataType {
Title = 'title',
Text = 'text',
Date = 'date',
// ...
}
export enum SystemId {
Title = 'Title',
// ...
}
Expected Result
No lint error since enum has been defined just once.
error(s):
<enum name> is already declared in the upper scope (eslint no-shadow)
version:
| package |
version |
| eslint-plugin-github |
^4.1.3 |
| @typescript-eslint/eslint-plugin |
^4.28.3 |
| Typescript |
^4.3.4 |
| ESLint |
^7.29.0 |
| node |
v14.17.1 |
hello there 👋🏽
We're actively working to adopt
github/recommendedandgithub/typescriptrules. Typescript enums are widely used in our repository, however, the recommended GitHub plugin yields ano-shadowerror for every enum occurrence.repro:
Expected Result
No lint error since enum has been defined just once.
error(s):
<enum name>is already declared in the upper scope (eslint no-shadow)version: