Move from TSLint to ESLint
See original GitHub issueTSLint 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:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @BrennanConroy! So, I finally did most of the work. Just an overview:
Checked all the default rules from TSLint: https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts
Checked all the default rules from ESLint/TS ESLint: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended.ts https://github.com/eslint/eslint/blob/master/conf/eslint-recommended.js
Added the ones that were ON by default in TSLint but not in ESLint/TS ESLint.
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 😅
Yeah, we’d also like to try and preserve the rules from our tslint config (if they aren’t already on by default)