Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Update tslint:recommended configuration for 4.0 release #1507

Closed
5 of 16 tasks
adidahiya opened this issue Aug 22, 2016 · 7 comments · Fixed by #1717
Closed
5 of 16 tasks

Update tslint:recommended configuration for 4.0 release #1507

adidahiya opened this issue Aug 22, 2016 · 7 comments · Fixed by #1717

Comments

@adidahiya
Copy link
Contributor

adidahiya commented Aug 22, 2016

#Let's track the breaking changes we want to make to the tslint:recommended config here.


Also, I was thinking it might be useful for users to have access to an older stable configuration so that they don't have to address all of 4.0's breaking changes at once. Perhaps a new config called tslint:3.x that is identical to the current tslint:latest?

@adidahiya adidahiya added this to the TSLint v4.0 milestone Aug 22, 2016
@adidahiya adidahiya changed the title Update tslint:latest configuration for 4.0 release Update tslint:recommended configuration for 4.0 release Aug 22, 2016
@nchen63 nchen63 self-assigned this Nov 11, 2016
@nchen63
Copy link
Contributor

nchen63 commented Nov 11, 2016

@adidahiya It looks like you changed no-unused-variable to deprecated already. I assume you didn't remove it since people need to turn on the compile flag

edit: I'll just change the list from remove to deprecated

@nchen63
Copy link
Contributor

nchen63 commented Nov 11, 2016

added some more from latest.ts:

add adjacent-overload-signatures
add object-literal-key-quotes
add object-literal-shorthand? <-- are you sure about this one?
add only-arrow-functions/allow-declarations

@adidahiya
Copy link
Contributor Author

yep, I'm sure about object-literal-shorthand

@zhaytee
Copy link

zhaytee commented Nov 11, 2016

Hey folks, trying out 4.0.0-dev.1 here. Very simple config and invocation:
tslint.json: { "extends": "tslint:recommended" }

invocation: $ node_modules/.bin/tslint -e "node_modules" "src/**/*.js"

I keep running into the following error:
Could not find implementations for the following rules specified in the configuration: no-duplicate-key

I grepped for that rule name, and it seems to be defined as part of the recommended set of rules. But the rule itself is no longer included with tslint, is that correct?

Edit: I edited the recommended ruleset file and changed no-duplicate-key to false, and now everything is working.

@nchen63
Copy link
Contributor

nchen63 commented Nov 12, 2016

@zhaytee it was removed with #1671, which didn't make it into 4.0.0-dev.1. Not sure why the rule appeared removed

@zhaytee
Copy link

zhaytee commented Nov 12, 2016

@nchen63 Thanks for your reply. I rm -rf'd my node_modules dir and did a fresh yarn install, making sure that 4.0.0-dev.1 was being pulled down. Indeed, 4.0.0-dev.1 is the version installed, yet I'm still seeing the error message about no-duplicate-key not being found. See the attached screenshot for details.

Also, the error still goes away when I edit tslint/lib/configs/recommended.js and set no-duplicate-key to false. Not sure what's up. Happy to provide any more information if need be!

screen shot 2016-11-11 at 7 07 03 pm

@nchen63
Copy link
Contributor

nchen63 commented Nov 12, 2016

@zhaytee You're right. I looked at the tag for dev.1, and it does reflect what you're seeing. Thanks for looking into this. dev.2 should be out soonish

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants