forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trailing comma rule now encompasses function decls, exprs and types (p…
…alantir#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
- Loading branch information
1 parent
e9bedf9
commit 4df4a2e
Showing
6 changed files
with
1,847 additions
and
11 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.