question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move from TSLint to ESLint

See original GitHub issue

TSLint is deprecated, we should look into moving to ESLint https://www.npmjs.com/package/tslint

As part of that we should make sure to add the "requires '_'" rule for private members to help with name mangling. https://github.com/dotnet/aspnetcore/pull/30320/commits/7844c64d37b253feb9863cae023be6ec9eff62e4#diff-887211f12c122673d436221142a9cd6cb0c7355385261e595742116180e7754a

"naming-convention": [
            true,
            {"type": "member", "modifiers": "private", "leadingUnderscore": "require"}
          ]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
joaopgrassicommented, May 5, 2021

Hi @BrennanConroy! So, I finally did most of the work. Just an overview:

I believe the only thing missing is adding the rule you mentioned to enfore _ on private fields. I’ll work on it next.

The PR is there in draft, as I believe we’ll have to iterate through it to see I didn’t miss/messed up something. Local build/tests all pass which is a good sign I guess 😅

1reaction
BrennanConroycommented, Mar 29, 2021

Yeah, we’d also like to try and preserve the rules from our tslint config (if they aren’t already on by default)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate from TSLint to ESLint
Now, to make the actual migration simpler, run the tslint-to-eslint-config utility. This tool will take your TSLint configuration and create the "closest" ...
Read more >
Migrating from TSLint to ESLint - Le Blog | Ninja Squad
Migrating an Angular project ... First you need to add @angular-eslint. ... This will: ... ng lint now runs ESLint! You may have...
Read more >
Migrating from TSLint to ESLint
The migration from TSLint to ESLint is welcome in being able to leverage more of what the larger JavaScript community has been developing....
Read more >
Painless Migration of tslint to eslint — Angular
Step 2: Running @angular-eslint · Read your chosen project's tslint. · UPDATE the project's architect configuration in the angular. · UPDATE any instances...
Read more >
typescript-eslint/tslint-to-eslint-config
The tslint-to-eslint-config command reads in any existing linter, TypeScript, and package configuration files, then creates an .eslintrc.js result based on them ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found