Closed ferk6a closed 4 years ago
Thank you for submitting this @fer22f. This is a valid issue.
According to the link, TSLint won't accept new features starting from November 1st, 2019 and won't fix security vulnerabilities starting from December 1st, 2020.
Moving to ESLint seems to be the natural choice.
In order to have all the generated code and the examples in the documentation to work with the new ESLint configuration, we need to have by default the same linting rules that we have now. These rules can of course be changed after the project is created if users want to.
I'm not aware of the compatibilities between ESLint and TSLint on TS rules. The migration tool https://github.com/typescript-eslint/tslint-to-eslint-config may take care of that.
So, IMO, so as to make properly the migration, we need to:
samples/
projects.TSLint
with ESLint
in the docs/
folder.Configuring the linting
in https://github.com/FoalTS/foal/blob/master/docs/development-environment/vscode.md.Sounds good?
@fer22f Do you want to dig into this?
Yep, I will look into it, I actually didn't know about this tslint-to-eslint-config
project!
I think this will certainly be valuable in general, and we can also think about the migration:generate
command automatically being lint fixed (they use a slightly different convention for imports in their template).
I will submit some PRs in the coming days.
Added in v1.3.0. Closing this.
Since TSLint is being deprecated (https://github.com/palantir/tslint/issues/4534), I think we should start to make this move too, both in the projects and also in the cli generated code. I have some configuration based on
airbnb-typescript/base
(which I can make a PR), but I don't know if it should be the default for new generated applications.Thoughts?