|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: ESLint v1.3.0 released |
| 4 | +tags: |
| 5 | + - release |
| 6 | + - minor |
| 7 | +--- |
| 8 | +# ESLint v1.3.0 released |
| 9 | + |
| 10 | +We just pushed ESLint v1.3.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Features |
| 18 | + |
| 19 | + |
| 20 | +* New: `no-useless-concat` rule (fixes [#3506](https://github.com/eslint/eslint/issues/3506)) (Henry Zhu) |
| 21 | +* New: Added HTML formatter (fixes [#3505](https://github.com/eslint/eslint/issues/3505)) (Julian Laval) |
| 22 | +* New: Protractor environment (fixes [#3457](https://github.com/eslint/eslint/issues/3457)) (James Whitney) |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +## Enhancements |
| 28 | + |
| 29 | + |
| 30 | +* Update: Add `keywords` flag to `consistent-as-needed` mode in `quote-props` (fixes [#3532](https://github.com/eslint/eslint/issues/3532)) (Burak Yigit Kaya) |
| 31 | +* Update: adds `numbers` option to quote-props (fixes [#2914](https://github.com/eslint/eslint/issues/2914)) (Jose Roberto Vidal) |
| 32 | +* Update: Return to accept `undefined` type (fixes [#3382](https://github.com/eslint/eslint/issues/3382)) (Gyandeep Singh) |
| 33 | +* Update: Quote var name in `no-unused-vars` error messages (refs [#3526](https://github.com/eslint/eslint/issues/3526)) (Burak Yigit Kaya) |
| 34 | +* Update: Move methods to SourceCode (fixes [#3516](https://github.com/eslint/eslint/issues/3516)) (Nicholas C. Zakas) |
| 35 | +* Update: Add quotes around the label in `no-empty-label` error reports (fixes [#3526](https://github.com/eslint/eslint/issues/3526)) (Burak Yigit Kaya) |
| 36 | +* Update: `newline-after-var` Allow comment + blank after var (fixes [#2852](https://github.com/eslint/eslint/issues/2852)) (Ian VanSchooten) |
| 37 | +* Update: Add `unnecessary` option to `quote-props` (fixes [#3381](https://github.com/eslint/eslint/issues/3381)) (Burak Yigit Kaya) |
| 38 | +* Update: separate options for block and line comments in `spaced-comment` rule (fixes [#2897](https://github.com/eslint/eslint/issues/2897)) (Burak Yigit Kaya) |
| 39 | +* Update: Added "properties" option to `id-length` rule to ignore property names. (fixes [#3450](https://github.com/eslint/eslint/issues/3450)) (Mathieu M-Gosselin) |
| 40 | +* Update: add new ignore pattern options to no-unused-vars (fixes [#2321](https://github.com/eslint/eslint/issues/2321)) (Mathias Schreck) |
| 41 | +* Update: Allow pre-parsed code (fixes [#1025](https://github.com/eslint/eslint/issues/1025), fixes [#948](https://github.com/eslint/eslint/issues/948)) (Nicholas C. Zakas) |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +## Bug Fixes |
| 47 | + |
| 48 | + |
| 49 | +* Fix: `quote-props` rule should ignore computed and shorthand properties (fixes [#3557](https://github.com/eslint/eslint/issues/3557)) (fixes [#3544](https://github.com/eslint/eslint/issues/3544)) (Burak Yigit Kaya) |
| 50 | +* Fix: check space after yield keyword in space-unary-ops (fixes [#2707](https://github.com/eslint/eslint/issues/2707)) (Mathias Schreck) |
| 51 | +* Fix: Don't try too hard to find fault in `no-implicit-coercion` (refs [#3402](https://github.com/eslint/eslint/issues/3402)) (Burak Yigit Kaya) |
| 52 | +* Fix: Detect ternary operator in operator-linebreak rule (fixes [#3274](https://github.com/eslint/eslint/issues/3274)) (Burak Yigit Kaya) |
| 53 | +* Fix: ASI indentation issue (fixes [#3514](https://github.com/eslint/eslint/issues/3514)) (Burak Yigit Kaya) |
| 54 | +* Fix: Make `no-implicit-coercion` smarter about numerical expressions (fixes [#3510](https://github.com/eslint/eslint/issues/3510)) (Burak Yigit Kaya) |
| 55 | +* Fix: `prefer-template` had not been handling TemplateLiteral as literal node (fixes [#3507](https://github.com/eslint/eslint/issues/3507)) (Toru Nagashima) |
| 56 | +* Fix: `indent` shouldn't check the last line unless it is a punctuator (fixes [#3498](https://github.com/eslint/eslint/issues/3498)) (Burak Yigit Kaya) |
| 57 | +* Fix: `indent` rule does not indent when doing multi-line chain calls (fixes [#3279](https://github.com/eslint/eslint/issues/3279)) (Burak Yigit Kaya) |
| 58 | +* Fix: sort-vars rule fails when memo is undefined (fixes [#3474](https://github.com/eslint/eslint/issues/3474)) (Burak Yigit Kaya) |
| 59 | +* Fix: `brace-style` doesn't report some closing brace errors (fixes [#3486](https://github.com/eslint/eslint/issues/3486)) (Burak Yigit Kaya) |
| 60 | +* Fix: `indent` does not check FunctionDeclaration nodes properly (fixes [#3173](https://github.com/eslint/eslint/issues/3173)) (Burak Yigit Kaya) |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +## Documentation |
| 66 | + |
| 67 | + |
| 68 | +* Docs: Add config comments for rule examples 'accessor-pairs' to 'no-extra-semi' (refs [#2271](https://github.com/eslint/eslint/issues/2271)) (Ian VanSchooten) |
| 69 | +* Docs: (curly) Fix broken code in example (Kent C. Dodds) |
| 70 | +* Docs: Clearer plugin rule configuration (fixes [#2022](https://github.com/eslint/eslint/issues/2022)) (Nicholas C. Zakas) |
| 71 | +* Docs: Turn off Liquid in example (Nicholas C. Zakas) |
| 72 | +* Docs: Mention CommonJS along with Node.js (fixes [#3388](https://github.com/eslint/eslint/issues/3388)) (Nicholas C. Zakas) |
| 73 | +* Docs: Make it clear which rules are recommended (fixes [#3398](https://github.com/eslint/eslint/issues/3398)) (Nicholas C. Zakas) |
| 74 | +* Docs: Add links to JSON Schema resources (fixes [#3411](https://github.com/eslint/eslint/issues/3411)) (Nicholas C. Zakas) |
| 75 | +* Docs: Add more info to migration guide (fixes [#3439](https://github.com/eslint/eslint/issues/3439)) (Nicholas C. Zakas) |
| 76 | +* Docs: Added section to shareable config (Gregory Waxman) |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +## Build Related |
| 84 | + |
| 85 | + |
| 86 | +* Build: Autogenerate release blog post (fixes [#3562](https://github.com/eslint/eslint/issues/3562)) (Nicholas C. Zakas) |
| 87 | + |
| 88 | + |
0 commit comments