typescript-eslint/tslint-to-eslint-config

Incorrect rule conversion for `no-cookies` tslint rule

viditganpi opened this issue ยท 2 comments

๐Ÿ› Bug Report

  • tslint-to-eslint-config version: 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

  1. Add following to your tslint.json, "no-cookies": true
  2. Use npx tslint-to-eslint-config
  3. Check your .eslintrc.js file it should have a rule restricted-syntax, which is not recognized by ESlint.

Aha! A typo! Thanks @viditganpi!

Accepting PRs - should be a good good first issue!