-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove TSLint (and optionally replace with eslint-plugin) #240
Comments
I am cool with replacing TSLint as long as we move the configuration to ESLint. Just removing would be a regression. |
Regression in what sense? I think that having linting on for maintainers is amazing and we should do! But the exercise level should probably have very loose rules for the students. Currently it's enforcing style which is not official and there are competing style guides, which is when forcing style is against exercism policy :) For example: this forces no semi-colon and indent with spaces. Whilst I wholly agree with them, these are company/project policies and should not be in there for the student. |
Yeah. We could edit the lint script to use a different configuration or like you said we could remove it. I don’t see why we would since it is not something that gets automatically ran like pretty or similar auto formatters. "scripts": { |
Ah, that is a common mistake:
The issue here is that having The steps we have taken at javascript so far are:
Which would be very similar to what you're suggesting, so I approve 👍 Edit: clarification: my recommendation would be to replace it with the new plugin, not remove it, but also to downgrade the "severity of strictness" for the track level, and make the change you're suggesting which would use the project level config instead. |
The way I see the progression is to move to eslint while maintaining the same config and not style changes. Figure out a way to have the default be different than what gets ran on CI which should match the original. |
Working on this. |
* Add implementing a concept docs * add missing files in example file structure and change existing to .ts * add .gitignore in exercise folder * add stubs for concept files
As you might have heard, TSLint has been officially deprecated and will reach EOL soon.
The official replacement is a plugin on top of eslint:
This track should remove
tslint
dependency moving forward and optionally replace it with theeslint-plugin
version. That said:prettier
and linting such astslint
should only be applied to help with the fluency of the language (capture potential mistake) and not force a particular style guide if there is no official one.tslint
was not an official standard by Microsoft, but rather a company called Palantir. There are various other linters, such as xo which have a completely different default ruleset.eslint
this iseslint:recommended
.As nice as
prettier
is, its rules are no official standard and should therefore not be applied.The text was updated successfully, but these errors were encountered: