-
Notifications
You must be signed in to change notification settings - Fork 490
Conversation
It would probably be nice for us to Prettify the existing template files as well, but I think that should be a separate PR. |
@@ -48,6 +48,7 @@ | |||
"ts-loader": "^2.3.7", | |||
"tsconfig-paths-webpack-plugin": "^2.0.0", | |||
"tslint": "^5.7.0", | |||
"tslint-config-prettier": "^1.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should add this. We should aim to be as flexible as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed you agreed to using this package in #77, that's why I added it. If I understand you correctly you now want to not use Prettier but instead use just the tslint:recommended
and tslint-react
presets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, yes no style rules from prettier.
@wmonk The custom rules that you were using do not match the presets. Do you want to add custom rules to fix the linting issues or do you want to update the template files to pass the test? |
I'd favor to use |
Sorry for flip-flopping agree with @DorianGrey here, didn't realise the function of prettier in this case. |
Travis build is still failing ... which is curious, since it fails on a
|
LGTM, thanks! |
As discussed in #77 I have replaced the extensive custom ruleset with some sane defaults by using the tslint:recommended preset and added support for React by also using
tslint-react
.Also I added
tslint-config-prettier
which disables any rule regarding code style (e.g. quote style) to avoid collisions with automatic code formatters.