Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Prepare v4.0.0-dev.0 #1596

Merged
merged 39 commits into from
Oct 4, 2016
Merged

Prepare v4.0.0-dev.0 #1596

merged 39 commits into from
Oct 4, 2016

Conversation

adidahiya
Copy link
Contributor

No description provided.

jkillian and others added 30 commits August 19, 2016 15:42
* 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.
)

JetBrains' //noinspection added to comment-format whitelist

JetBrains IDE’s (IntelliJ IDEA, WebStorm, PhpStorm, etc.) disabling
inspections by adding `//noinspection [rulenames]` before the
expression. This violates the rule of single-line comments must start
with a space.
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.
nomaed and others added 8 commits September 20, 2016 11:53
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.
Addresses review #875140 in PR #1558 for compatibility with discussion item #1553
* 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>'
@adidahiya adidahiya merged commit aed1191 into next Oct 4, 2016
@adidahiya adidahiya deleted the ad/master-into-next branch October 4, 2016 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.