Incorrect rule conversion for `no-cookies` tslint rule
viditganpi opened this issue ยท 2 comments
viditganpi commented
๐ Bug Report
tslint-to-eslint-configversion: 2.9.1- ESLint version: 7.32.0
- Node version: 14.17.5
Actual Behavior
Currently on using tslint-to-eslint-config the no-cookies rule gets translated to restricted-syntax rule in the .eslintrc.js file.
Expected Behavior
The correct conversion would be no-restricted-syntax as per the conversion mentioned here
Reproduction
- Add following to your
tslint.json,"no-cookies": true - Use
npx tslint-to-eslint-config - Check your
.eslintrc.jsfile it should have a rulerestricted-syntax, which is not recognized by ESlint.
JoshuaKGoldberg commented
Aha! A typo! Thanks @viditganpi!
Accepting PRs - should be a good good first issue!
JoshuaKGoldberg commented
The fix is released in v2.9.2. Thanks @viditganpi! โจ
https://github.com/typescript-eslint/tslint-to-eslint-config/releases/tag/v2.9.2