Repository navigation
Shared tslint and tsconfig #174
Description
Activity
Any ideas for the name of the package? Does tslint provide conventions like http://eslint.org/docs/user-guide/configuring#using-a-shareable-configuration-package?
- addeddeveloper-experienceIssues affecting ease of use and overall experience of LB usersIssues affecting ease of use and overall experience of LB usersand removed
on Apr 19, 2017 I am proposing
@loopback/tsling-configtslint does provide conventions for sharing rules, see sharable-configuration-rules. In the post, they are using
shared-tslint-rulesas the project name. Other people seem to usetslint-config-{name}, see e.g.- https://www.npmjs.com/package/tslint-config-olo
- https://www.npmjs.com/package/tslint-config-ezhome
- https://www.npmjs.com/package/tslint-config-standard
BTW we may want to consider using some eslint rules via https://github.com/buzinas/tslint-eslint-rules, but that's out of scope of this patch. OTOH, I personally think we should move to Prettier (see #165) and configure tslint only to check for programming errors only.
Reacted by Jonathan CasarrubiasPrettier looks nice, I like the philosophy. +1
I'm fine with
@loopback/tsling-config.Using some ESLint rules is fine, we can address those when they actually come up.
relate to: #165
Closing as done by #682
In the spirit of
eslint-config-loopback, we should move our tsc and tslint configuration to a shared package that can be used by other LoopBack.next projects, e.g. loopback-next-example.cc @ritch @superkhau