QUERY - Can anyone recommend the closest ESLint style guide to TSLint for an Angular project in VSCode? I'm looking for a out-of-the-box solution that doesn't require me to tweak too many rules in .eslintrc.json file.
I initially set up my style guide using Google (thinking it's Typescript-friendly), but I'm encountering more errors compared to when I was using TSLint.
For example, the maximum code length is now 80 characters instead of the previous 140 characters in TSLint. Additionally, the new style guide enforces no space after '{'.
import { AfterViewInit, Component, Input, OnDestroy, OnInit } from '@angular/core';
NOTE - I recently made the switch from TSLint to ESLint in my VSCode Angular project and have been facing numerous ESLint errors that were not present before. I opted for Google as the style guide during the installation process.
https://i.sstatic.net/UTQtg.png
This is my current .eslintrc.json configuration:
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"google"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"max-len": ["error", {
"code": 140
}]
}
}