Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Externalise ts-lint rules #112

Closed
wants to merge 5 commits into from

Conversation

timjacobi
Copy link

As discussed in #109

I wasn't entirely sure how to properly test my changes since the setup doesn't allow it to test with npm link. Please let me know. Thanks :)

"check-typecast"
]
}
"extends": ["tslint-react", "tslint-create-react-app-typescript"]
Copy link
Owner

Choose a reason for hiding this comment

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

To be honest i'd be happier to just extend from tslint-react and let people write their own rules? Would be interested to hear how people are actually using this file, whether they just delete their own and start again, or leave as-is.

Copy link
Author

Choose a reason for hiding this comment

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

That would make things a lot simpler

Copy link

Choose a reason for hiding this comment

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

Sample tslint-react config suggests extending tslint:latest

The latest preset extends tslint:recommended and adds features supported by tslint 2.4

Many reasonable defaults

Quite strict

Helps keep consistent style across projects

Angular contributors have an issue and a pull request considering its usage in their bootstrapping tools

Copy link
Owner

Choose a reason for hiding this comment

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

I would agree this is a good starting point!

Choose a reason for hiding this comment

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

I like having all the tslint config rules that someone else thought through, but some of the rules are out of date.

Project is a day or so old, here's my tslint: https://github.com/Falieson/typescript-react-asteroid-meteor/blob/master/client/tslint.json

@wmonk
Copy link
Owner

wmonk commented Aug 7, 2017

@timjacobi do you want to update this?

@timjacobi
Copy link
Author

I need to check with my new employer. Shouldn't be a problem though but will take a day or two. Happy to update once greenlit.

@wmonk
Copy link
Owner

wmonk commented Aug 8, 2017

Ok great! If you can't work on this, then i'm sure someone else will be able to 👍

@ianschmitz
Copy link
Contributor

Are you able to continue on this PR @timjacobi? If not i don't mind helping out.

Sounds like from the thoughts above we would provide something like "extends": ["tslint:latest", "tslint-react"], and let the developer customize from there?

@wmonk
Copy link
Owner

wmonk commented Jan 11, 2018

@ianschmitz are you interested in picking this up? Closing for now.

@wmonk wmonk closed this Jan 11, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants