Closed
Description
🐛 Bug Report
tslint-to-eslint-config
version: current- ESLint version: 7.2.0
- Node version: 14.15.5
Actual Behavior
1st problem:
2 rules are not known by tslint-to-eslint-config to have ESLint equivalents. ❓
The "@typescript-eslint/tslint/config" section of ./.eslintrc.js configures eslint-plugin-tslint to run them in TSLint within ESLint.
* tslint-to-eslint-config does not know the ESLint equivalent for TSLint's "import-spacing".
* tslint-to-eslint-config does not know the ESLint equivalent for TSLint's "whitespace".
2nd problem:
All is well! ✅
... then, while first eslint
Oops! Something went wrong! :(
Error: Error while loading rule '@angular-eslint/template/banana-in-box': You have used a rule which requires '@angular-eslint/template-parser' to be used as the 'parser' in your ESLint config.
3rd problem
After changing the parser value:
Oops! Something went wrong! :(
Error: Failed to load parser '@angular-eslint/template-parser' declared in '.eslintrc.js': Cannot find module '@angular-eslint/template-parser'
4th problem
After installing the package
Oops! Something went wrong! :(
Error: Error while loading rule '@typescript-eslint/dot-notation': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Looking into .eslintrc.js:
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
Huh?
Expected Behavior
A smooth transition for a standard angular project, importing all rules, especially the whitespace-rule, setting the correct config, and not leaving me behind clueless with a misleading error message.