This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 885
Conversation
This file contains 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
* Add ArrayType to SyntaxWalker
* Remove docs/_site files that shouldn't be checked in * gitignore files that shoudln't be checked in * Don't tie site to a specific version of ruby * Add note that type info is required for some rules
Fixes now parenthesize union, intersection and function types.
This change allows aliasing symbols, as long as the left hand side name is identical to the right hand side name. The use case is interoperating with legacy code that uses namespaces, but still being able to abbreviate long namespaces in an ES6 module: const SomeClass = some.long.namespace.SomeClass; Another use case is exposing enums or other PascalCased objects to a template in an Angular application (or similar environments): class MyCtrl { SomeEnum = SomeEnum; }
* Change tslint-cli#processFile to tslint-cli#processFiles * Extract MultiLinter from Linter * Always write output stream * MultiLinter#lint: Make source parameter optional
…1486) * Trailing comma rule now encompasses function decls, exprs and types * Trailing comma support for ctor, iface, class, type params, methods, set accessor, function calls -- Untested: 1. ctor calls (should be handled by callSignature) 2. set accessor calls (should be handled by callSignature) 3. tuple/function/ctor/parameterized return types (should be handled syntax walker recursion and should hit one of vist...[TupleType, FunctionType, ConstructorType, TypeReference, TypeLiteral]) 4. Enums (I think this will fail) -- Known not working: 1. comma separated object literal types (object literals can be semicolon delineated, so need a good way to only cry about trailing commas if they aren't semicolon delineated) -- Known won't fix: 1. iface/class extension list (tsc does not support trailing commas) * Handle objects and enums
Adds a new rule to prefer for-of loops when the index in a standard for loop is never used.
external-formatter test file was named *Test.ts while grunt runs the test task on all *Tests.ts
Currently the stylish formatter *only* prints the first fileName, and then a list of lint errors from all files without specifying to which file they belong. After this fix, each time a new file is reached, a new line will be added, and then the name of the file, so each group of lint failures will be group with their fileName.
This formatter does not output any lint errors. Instead, it lists all of the files that had lint errors. This is useful for creating lists of files that need to be taken care of, or for bulk-opening all of the files in an editor from CLI.
* Only use '[]' notation for 'simple' types. * Nested Arrays are ok as long as their type argument is also simple * Add space when fixing 'T[]' to 'Array<T>'
Breaking change. Fixes #1020.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.