palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.
Apache License 2.0
749 stars 76 forks source link

Add new rule (no space before '>') #199

Closed matei-oltean closed 5 years ago

matei-oltean commented 5 years ago

Adds a new rule to check for whitespaces before '>' (e.g. <div >)

palantirtech commented 5 years ago

Thanks for your interest in palantir/tslint-react, @matei-oltean! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

adidahiya commented 5 years ago

Sorry, I don't think it makes sense to add new formatting rules to this repo, as per https://github.com/palantir/tslint/issues/4534.

FWIW, in the future, new rule implementations like this need to include test cases.