Repository navigation
update codelyzer and related - #279
Merged
Merged
Conversation
Member
|
I am good with bringing the templates use public and the tsconfig part. For the service, perhaps it would be better to create a public variable and assign what we need from the API other than putting the entire api public. |
added 2 commits
January 23, 2017 21:29
forbids unused locals and unused paramters
Foxandxss
reviewed
Jan 23, 2017
| "tslint-loader": "^3.3.0", | ||
| "typedoc": "^0.5.1", | ||
| "typescript": "2.0.10", | ||
| "typescript": "2.1.5", |
Member
There was a problem hiding this comment.
revert this one please. TS2.1.x doesn't work with AOT (yes, I don't have it here yet) but I know people adding AOT on this and they will be confused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goals:
All rules recommended by codelyzer, except
templates-use-public, are enabled.The
no-unused-variablerule is no longer supported byts-lint. The check is handled by typescript@2.0 itself with thenoUnusedLocalsandnoUnusedParameterscompiler options. Staying away from modifying your src folder, I did not set these flags intsconfig.jsonbecause "Property 'api' is declared but never used." in app component. This passed the oldno-unused-variablerule as is, I guess because of it being a "parameter property" or being used in the template. (?)no-unreachableis similiarly covered by the--allowUnreachableCodetsc compiler option.label-undefinedandno-duplicate-keyare also no longer part of ts-lint and supported by tsc.Other rule changes are due to combining, for example, the older component/directive naming rules.
I have gone further in my fork and would be happy to update this branch with the following. Let me know.
templates-use-publicper this thinking which has convinced menoUnusedLocalsandnoUnusedParametersintsconfig.jsonapp.component.tsin support of these new settingsI am also enabling some security-related rules from Microsoft which are interesting but I predict you'll not want those as you strive to maintain the starter's simplicity. Let me know othewise.
This is the best starter kit. Thanks for your hard work!