Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Tslint 4.0 #138

Merged
merged 15 commits into from
Nov 21, 2016
Merged

Tslint 4.0 #138

merged 15 commits into from
Nov 21, 2016

Conversation

jmlopez-rod
Copy link
Collaborator

This PR is not yet done. The CI will fail since gulp-tslint has not been released with the tslint update yet. It may happen sometime tomorrow.

For now all the changes included here make the tests pass if we skip the linting process:

gulp test --no-lint

I'll do another round of updates once this issue is resolved: panuhorsmalahti/gulp-tslint#90

Manuel Lopez added 15 commits November 19, 2016 16:39
Currently these errors are could be left out by Travis CI.
This has been deprecated on tslint 4.0. They recommend we turn on
noUnusedParameters and noUnusedLocals on the typescript configuration.
See https://palantir.github.io/tslint/2016/11/17/new-for-4.0.html.
Overall we had to remove deprecated rules from our tslint.json file and
change our import statements. The helper file had major changes due to
their new API. All tests are passing right now.
This was a core rule from TSLint and it has deprecated since typescript
handles it.
The rule tester will replace the helper file in the tests. A few more
modifications need to be done before the release. For instance I’m not
happy with the `IFailure` interface name. This needs to be changed. All
the tests for the ter-max-len rule have been updated to make use of the
RuleTester.
It now supports tslint 4.0, the tests should be passing now. I had to
turn off the max-line-length rule since I violate it on the readme. I
will try to run a check on our files with our own custom rules.
In this case I have turned on the `ter-max-len` rule on so that we may
stop the linter from warning us when a line exceeds 180 due to a url
encounter. Travis should pass now I believe. Lets see.
Tried to turn on object-curly-spacing but there are way too many errors
on the ter-indent tests. The tests will be split into groups soon so I
will turn on the rule once this is done.
All the tests need are: RuleTester, Failure, Position, and decent from
the ruleTester module.
using the ruleTesters to simplify the tests.
@jmlopez-rod
Copy link
Collaborator Author

@buzinas @blakeembrey All tests are passing again. Any of you have some time to do a quick code review? I'd like to release today so that I may start using tslint 4.0 and this project together.

@@ -0,0 +1,14 @@
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@buzinas I noticed that there is a file called eslint_tslint.json with a list of the rules in the project. Where those meant to be the preferences for the source code in this project? I tried them but it gave a lot of errors so I'll be adding some rules here and there as I see them fit. For now I started with the obvious ones. Is it safe to delete eslint_tslint.json?

@blakeembrey
Copy link
Collaborator

I think it looks good, thanks for your all your work!

@jmlopez-rod
Copy link
Collaborator Author

Awesome, i'll go ahead and release this sometime during my lunch break.

@jmlopez-rod jmlopez-rod merged commit db157a2 into master Nov 21, 2016
@jmlopez-rod jmlopez-rod deleted the tslint-4.0 branch November 21, 2016 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to TSLint 4.0
2 participants