ESLint 0.11.0 releasedby Nicholas C. Zakas, Kai Cataldo - 30 December 2014
We just pushed ESLint 0.11.0, which is a minor release upgrade. This release includes new features, bug fixes, and a parser switch.
This is a summary of the major changes you need to know about for this version of ESLint.
0.11.0 is the first version of ESLint to run on our own parser, Espree. Espree is currently configured to behave like Esprima 1.2.2, which was the parser that 0.10.0 was using, so you should see no differences in the behavior of ESLint related to the parser change.
Making this change allowed us to fix a couple of bugs we've had open that were related to Esprima issues.
ECMAScript 5 by default
Part of this involved a change made for #1484, which updated the
dot-notation rule to allow keywords be used (as allowed by ECMAScript 5 but not ECMAScript 3). The option
allowKeywords was added with a default value of
true so that you can opt-out of this behavior if you need to support an ECMAScript 3 environment.
This means the following used to result in a warning but no longer does in 0.11.0:
obj.delete = 5;
- Breaking: add es3 config option to dot-notation rule (fixes #1484) (Michael Ficarra)
- New: Configuration via package.json (fixes #698) (Michael Mclaughlin)
- New: space-after-function-name (fixes #1340) (Roberto Vidal)
- Fix: Adding regexp literal exception (fixes #1589) (Greg Cochard)
- Fix: brace-style stroustrup should report on cuddled elseif (fixes #1583) (Ian Christian Myers)
- Fix: check if next statement is on newline when warning against extra semicolons. (fixes #1580) (Evan You)
- Fix: column location of key-spacing with additional tokens (fixes #1458) (Mathias Schreck)
- Fix: function arguments now count towards no-shadow check (fixes #1584) (Glen Mailer)
- Fix: padded-blocks incorrectly complained on comments (fixes #1416) (Mathias Schreck)
- Fix: valid-jsdoc should recognize @class (fixes #1585) (Nicholas C. Zakas)
- Fix: yoda treats negative numbers as literals (fixes #1571) (Brandon Mills)
- Update: add yoda exception for range tests (fixes #1561) (Brandon Mills)
- Update: Set environments w/ globals (fixes #1577) (Elan Shanker)
- Update: Switch to use Espree (fixes #1595) (Nicholas C. Zakas)
- Upgrade: Update Espree to 1.3.1 (Nicholas C. Zakas)
- Build: tag correct commit (refs #1606) (Mathias Schreck)