-
Notifications
You must be signed in to change notification settings - Fork 888
Blog entry for 4.0 #1734
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/build/ | ||
/docs/site/ | ||
/scripts/*.js | ||
/scripts/*.js.map | ||
/lib/ | ||
/test/executable/tslint.json | ||
node_modules/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
layout: post | ||
title: "New for 4.0" | ||
date: 2016-11-17 15:19:00 | ||
--- | ||
|
||
TSLint [4.0][0] has been released! With this release comes a few exciting [changes][1]. Some of the highlights: | ||
* **Fixers** - Do you dread turning on a new rule because of all of the new errors? For some of the most common issues, we'll fix them for you. To use this feature, run `tslint` with the `--fix` option. Here are the rules we fix right now: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of "rules we fix" might say "rules that support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you also write about & provide examples of how to implement a fixer (perhaps suggest that it's easy) to encourage contributions? |
||
* [array-type][2] | ||
* [arrow-parens][3] | ||
* [no-unused-variable][4] (for imports) | ||
* [no-var-keyword][5] | ||
* [ordered-imports][6] | ||
* [semicolon][7] | ||
* [trailing-comma][8] | ||
* **Linting `.js` files** - Make migrating from JavaScript even easier! Just add a `jsRules` [section][9] to your `tslint.json` file. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this isn't exactly the purpose... the purpose here is so that users don't have to use two linters (if they are considering tslint while migrating, they almost certainly were using eslint before). also note that it was a highly requested community feature (we didn't drive it) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've wondered how jsRules fits in. Is it only for React? I don't know why I think that. Is there something written up about it? I know there is https://github.com/buzinas/tslint-eslint-rules, maybe we reference that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I looked at the original ticket, and migrating was one of the reasons given. Can change the text, though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @olore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks @nchen63 |
||
* **TypeScript 2.0+ required** - This lets us deprecate/remove rules that are checked by the compiler. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. might be worth detailing which compiler features? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might help, not sure it's exhaustive
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @olore thanks! |
||
* **API Change** - [Moved and renamed][11] some things to make more sense. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you clarify that this is the Node.js API and the imports, in particular, are simpler |
||
* **Recommended Rules [Updated][12]** | ||
* [adjacent-overload-signatures][13] | ||
* [array-type][14] | ||
* [arrow-parens][15] | ||
* [max-classes-per-file][16] | ||
* [no-unsafe-finally][17] | ||
* [object-literal-key-quotes][18] (as needed) | ||
* [object-literal-shorthand][19] | ||
* [only-arrow-functions][20] | ||
* [ordered-imports][21] | ||
* [prefer-for-of][22] | ||
* **Other rules you might find handy**: | ||
* [completed-docs][23] | ||
* [cyclomatic-complexity][24] | ||
|
||
[0]: https://github.com/palantir/tslint/releases | ||
[1]: https://github.com/palantir/tslint/blob/master/CHANGELOG.md | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe link to release instead of the changelog? |
||
[2]: {{ site.baseurl }}/rules/array-type | ||
[3]: {{ site.baseurl }}/rules/arrow-parens | ||
[4]: {{ site.baseurl }}/rules/no-unused-variable | ||
[5]: {{ site.baseurl }}/rules/no-var-keyword | ||
[6]: {{ site.baseurl }}/rules/ordered-imports | ||
[7]: {{ site.baseurl }}/rules/semicolon | ||
[8]: {{ site.baseurl }}/rules/trailing-comma | ||
[9]: https://raw.githubusercontent.com/palantir/tslint/master/src/configs/recommended.ts | ||
[10]: {{ site.baseurl }}/usage/third-party-tools/ | ||
[11]: https://github.com/palantir/tslint/pull/1720 | ||
[12]: https://github.com/palantir/tslint/pull/1717/files#diff-6e3940e8ec3d59837c4435f32975ed2c | ||
[13]: {{ site.baseurl }}/rules/adjacent-overload-signatures | ||
[14]: {{ site.baseurl }}/rules/array-type | ||
[15]: {{ site.baseurl }}/rules/arrow-parens | ||
[16]: {{ site.baseurl }}/rules/max-classes-per-file | ||
[17]: {{ site.baseurl }}/rules/no-unsafe-finally | ||
[18]: {{ site.baseurl }}/rules/object-literal-key-quotes | ||
[19]: {{ site.baseurl }}/rules/object-literal-shorthand | ||
[20]: {{ site.baseurl }}/rules/only-arrow-functions | ||
[21]: {{ site.baseurl }}/rules/ordered-imports | ||
[22]: {{ site.baseurl }}/rules/prefer-for-of | ||
[23]: {{ site.baseurl }}/rules/completed-docs | ||
[24]: {{ site.baseurl }}/rules/cyclomatic-complexity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might call this "TSLint 4.0 Released", but up to you