UNPKG

38.8 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4This project adheres to [Semantic Versioning](http://semver.org/).
5
6## 13.0.0 - 2019-07-10
7
8Welcome to the latest version of `standard`!
9
10As with every new major release, there are lots of new rules in 13.0.0 designed
11to help catch bugs and make programmer intent more explicit.
12
13`standard` is more popular than ever – **640,000 downloads per month!** It's
14even more popular – **3,000,000 downloads per month** – if you include the
15[ESLint configuration](https://www.npmjs.com/package/eslint-config-standard)
16that we also publish (for advanced users).
17
18When you upgrade, consider running `standard --fix` to automatically format your code to match the newly added rules.
19
20### New features
21
22- Update `eslint` from `~5.16.0` to `~6.0.1`
23
24 - BREAKING: Node.js 6 is no longer supported
25 - Node.js 6 is EOL and will no longer be receiving security updates. As a result, the eslint team has decided to drop support for it.
26 - To prevent breaking CI for projects which still support Node 6, `standard` silently passes when run by an unsupported version of Node.
27
28 - **For `eslint-config-standard` users only:** Plugins are no longer affected by `eslint`'s location
29 - Previously, ESLint loaded plugins relative to the location of the ESLint package itself. As a result, we suggested that users with global ESLint installations should also install plugins globally, and users with local ESLint installations should install plugins locally.
30 - With ESLint v6, plugins should always be installed locally, even if ESLint was installed globally. More precisely, ESLint v6 resolves plugins relative to the end user’s project by default, and always resolves shareable configs and parsers relative to the location of the config file that imports them.
31 - See [migrating to ESLint 6.0.0 for more information](https://eslint.org/docs/user-guide/migrating-to-6.0.0#-plugins-and-shareable-configs-are-no-longer-affected-by-eslints-location).
32
33- The documentation is now available in Japanese 🇯🇵!
34 - Thanks to [@Munieru](https://github.com/munierujp) for the excellent work!
35 - Other community contributed translations exist in Spanish, French, Italian, Korean, Portuguese, Simplified Chinese, and Taiwanese Mandarin.
36 - More translations are always welcome!
37
38- Update `eslint-plugin-promise` from `~4.0.0` to `~4.2.1`
39
40- Update `eslint-plugin-node` from `~7.0.1` to `~9.1.0`
41
42### New rules
43
44*(Estimated % of affected standard users, based on test suite in parens)*
45
46- Disallow spaces inside of array brackets ([array-bracket-spacing](https://eslint.org/docs/rules/array-bracket-spacing)) [#1203](https://github.com/standard/standard/issues/1203) [eslint-config-standard/#131](https://github.com/standard/eslint-config-standard/pull/131) (14%)
47- Require `const` instead of `let` if variable is never reassigned ([prefer-const](https://eslint.org/docs/rules/prefer-const)) [#523](https://github.com/standard/standard/issues/523) [eslint-config-standard/#133](https://github.com/standard/eslint-config-standard/pull/133) (14%)
48- Disallow quotes around object literal property names that are not strictly required ([quote-props](https://eslint.org/docs/rules/quote-props)) [#791](https://github.com/standard/standard/issues/791) (4%)
49- Disallow use of Object.prototypes builtins directly ([no-prototype-builtins](https://eslint.org/docs/rules/no-prototype-builtins)) [#1310](https://github.com/standard/standard/issues/1310) (3%)
50- Require an empty line between class members ([lines-between-class-members](https://eslint.org/docs/rules/lines-between-class-members)) [#438](https://github.com/standard/standard/issues/438) (1%)
51- Disallow using an async function as a Promise executor ([no-async-promise-executor](https://eslint.org/docs/rules/no-async-promise-executor)) [#1309](https://github.com/standard/standard/issues/1309) (1%)
52- Disallow spaces inside of computed properties ([computed-property-spacing](https://eslint.org/docs/rules/computed-property-spacing)) [#1315](https://github.com/standard/standard/issues/1315) [eslint-config-standard/#131](https://github.com/standard/eslint-config-standard/pull/131) (1%)
53- Disallow unnecessary catch clauses ([no-useless-catch](https://eslint.org/docs/rules/no-useless-catch)) [#1312](https://github.com/standard/standard/issues/1312) (0%)
54- Disallow characters which are made with multiple code points in character class syntax ([no-misleading-character-class](https://eslint.org/docs/rules/no-misleading-character-class)) [#1311](https://github.com/standard/standard/issues/1311) (0%)
55
56## 12.0.1 - 2018-08-29
57
58- Since ESLint 5 no longer supports Node 4, `standard` silently passes when run in Node 4, which matches the current behavior for Node 0.10, 0.12, and all other unsupported versions of Node.
59
60## 12.0.0 - 2018-08-28
61
62New version of ESLint, new version of Standard!
63
64When you upgrade, consider running `standard --fix` to automatically format your code to match the newly added rules.
65
66### New features
67
68- Update `eslint` from `~4.19.0` to `~5.4.0`.
69 - Support JSXFragment nodes (e.g. `<></>`)
70 - Lots of minor changes to rules to catch more edge cases!
71- The README is now available in French! (Thanks [@charliegerard](https://github.com/charliegerard)!)
72 - Other community contributed translations exist in Spanish, Italian, Korean, Portuguese, Simplified Chinese, and Taiwanese Mandarin.
73 - More translations are welcome!
74
75### New rules
76
77*(Estimated % of affected standard users, based on test suite in parens)*
78
79- Require spacing inside of braces ([object-curly-spacing](https://eslint.org/docs/rules/object-curly-spacing)) [#609](https://github.com/standard/standard/issues/609) [eslint-config-standard/#35](https://github.com/standard/eslint-config-standard/issues/35) (29%)
80- Disallow APIs that were deprecated in Node 10 ([no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)) [#1164](https://github.com/standard/standard/pull/1164) (15%)
81 - e.g. `assert.equal()`, `assert.deepEqual()` and `assert.notEqual()` were deprecated in Node 10.
82- Disallow self assignment of properties ([no-self-assign](https://eslint.org/docs/rules/no-self-assign)) [#1186](https://github.com/standard/standard/issues/1186) (0%)
83
84### Changed rules
85
86None.
87
88## 11.0.0 - 2018-02-18
89
90This release has no new rules, but it does update to the latest version of `eslint`,
91version 4, which has some significant changes to existing rules. Most updates make
92the indentation rules more strict.
93
94Thankfully, most users will just need to run `standard --fix` to update code to be
95compliant.
96
97### New features
98
99- Update `eslint` from ~3.19.0 to ~4.18.0.
100 - The `indent` rule is more strict.
101 - The `padded-blocks` rule is more strict.
102 - The `space-before-function-paren` rule is more strict.
103 - The `no-multi-spaces` rule is more strict.
104 - Minor improvements to:
105 - `no-extra-parens`,
106 - `no-unexpected-multiline`,
107 - `no-regex-spaces`, and
108 - `space-unary-ops`
109
110- Update `eslint-plugin-import` from `~2.2.0` to `~2.8.0`
111 - Updated for eslint 4.0 compatibility.
112 - Various small bug fixes included related to `import/*` rules.
113
114- Update `eslint-plugin-node` from `~4.2.2` to `~6.0.0`
115 - The `no-deprecated-api` rule is updated with Node.js 8 support and improved
116 Node 6 support.
117
118- Upodate `eslint-plugin-promise` from `~3.5.0` to `~3.6.0`.
119
120- Update `eslint-plugin-react` from `~6.10.0` to `~7.6.1`
121 - Fix `jsx-indent` crash
122 - Fix `jsx-indent` indentation calculation with nested JSX.
123 - Fix `jsx-no-undef` will not check the global scope by default.
124 - Fix `jsx-curly-spacing` newline with object literals bug.
125 - Fix `jsx-curly-spacing` schema incompatibility with ESLint 4.2.0.
126 - Fix alignment bug in `jsx-indent`.
127
128### Changed rules
129
130- Relax rule: Don't mark Rails Asset Pipeline comments (comments that start with `//=`)
131 as errors. ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#918](https://github.com/standard/standard/issues/918)
132
133👏 Huge thanks to [@Flet](https://github.com/Flet) for putting together most of this
134release!
135
136## 10.0.3 - 2017-08-06
137
138- Internal changes (incremented dependency versions)
139
140## 10.0.2 - 2017-04-14
141
142### Changed rules
143
144- Relax rule: Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/standard/standard/issues/861)
145 - This rule was responsible for up to 25% of the running time of `standard`, so we are disabling it until its performance improves.
146
147## 10.0.1 - 2017-04-06
148
149- Internal changes (incremented dependency versions)
150
151## 10.0.0 - 2017-04-04
152
153**`standard` just turned 10.0.0!** 🎉
154
155As with every new major release, there are lots of new rules in 10.0.0 designed to
156help catch bugs and make programmer intent more explicit.
157
158`standard` is more popular than ever – **330,000 downloads per month!** It's even
159more popular – **670,000 downloads per month** – if you include the
160[shareable ESLint config](https://www.npmjs.com/package/eslint-config-standard)
161that we also publish.
162
163The most important change in 10.0.0 is that **using deprecated Node.js APIs is now
164considered an error**. It's finally time to update those dusty old APIs!
165
166Deprecated APIs are problematic because they may print warning messages in the
167console in recent versions of Node.js. This often confuses users and leads to
168unnecessary support tickets for project maintainers.
169
170Some deprecated APIs are even insecure (or at least prone to incorrect usage) which
171can have serious security implications. For that reason, `standard` now considers
172usage of `Buffer(num)` to be an error, since this function returns uninitialized
173program memory which could contain confidential information like passwords or keys.
174
175Instead of `Buffer(num)`, consider using `Buffer.alloc(num)` or `Buffer.from(obj)`
176which make the programmer's intent clearer. These functions exist in all currently
177supported versions of Node.js, including Node.js 4.x. For more background,
178[see this Node.js issue](https://github.com/nodejs/node/issues/4660).
179
180We also improved some rules to support common patterns in code bases that use
181React, JSX, and Flow.
182
183When you upgrade, consider running `standard --fix` to automatically fix some of
184the issues caught by this new version.
185
186### New features
187
188- Update ESLint from 3.15.x to 3.19.x.
189- Node.js API: Add `standard.lintTextSync` method
190
191### New rules
192
193*(Estimated % of affected standard users, based on test suite in parens)*
194
195- Disallow using deprecated Node.js APIs ([node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)) [#693](https://github.com/standard/standard/issues/693) (13%)
196 - Ensures that code always runs without warnings on the latest versions of Node.js
197 - Ensures that safe Buffer methods (`Buffer.from()`, `Buffer.alloc()`) are used instead of `Buffer()`
198- Enforce callbacks always called with Node.js-style error first ([standard/no-callback-literal](https://github.com/xjamundx/eslint-plugin-standard#rules-explanations)) [#623](https://github.com/standard/standard/issues/623) (3%)
199 - Functions named `callback` or `cb` must be invoked with `null`, `undefined`, or an `Error` as the first argument
200 - Disallows using a string instead of an `Error` object
201 - Disallows confusing callbacks that do not follow the standard Node.js pattern
202- Disallow any imports that come after non-import statements ([import/first](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) [#806](https://github.com/standard/standard/issues/806) (1%)
203- Disallow unnecessary return await ([no-return-await](http://eslint.org/docs/rules/no-return-await)) [#695](https://github.com/standard/standard/issues/695) (0%)
204- Disallow comma-dangle in functions ([comma-dangle](http://eslint.org/docs/rules/comma-dangle)) [#787](https://github.com/standard/standard/issues/787) (0%)
205- Disallow repeated exports of names or defaults ([import/export](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) [#806](https://github.com/standard/standard/issues/806) (0%)
206- Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#806](https://github.com/standard/standard/issues/806) (0%)
207- Disallow Webpack loader syntax in imports ([import/no-webpack-loader-syntax](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)) [#806](https://github.com/standard/standard/issues/806) (0%)
208- Disallow comparing against -0 ([no-compare-neg-zero](http://eslint.org/docs/rules/no-compare-neg-zero)) [#812](https://github.com/standard/standard/issues/812) (0%)
209
210### Changed rules
211
212- Relax rule: allow using `...rest` to omit properties from an object ([no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)) [#800](https://github.com/standard/standard/issues/800)
213 - This is a common and useful pattern in React/JSX apps!
214- Relax rule: allow Flow `import type` statements ([import/no-duplicates](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md)) [#599](https://github.com/standard/standard/issues/599)
215 - These are no longer considered to be "duplicate imports"
216- Relax rule: Treat `process.exit()` the same as `throw` in code path analysis ([node/process-exit-as-throw](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/process-exit-as-throw.md)) [#699](https://github.com/standard/standard/issues/699)
217 - Makes certain other rules work better and give fewer false positives
218- Relax rule: allow Unnecessary Labels ([no-extra-label](http://eslint.org/docs/rules/no-extra-label))
219 - Redundant, since "no-labels" is already enabled, which is more restrictive
220
221## 9.0.2 - 2017-03-17
222
223### Changed rules
224
225- Relax rule: Allow tagged template string expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#822](https://github.com/standard/standard/issues/822)
226
227## 9.0.1 - 2017-03-07
228
229### Changed rules
230
231- Relax rule: Allow mixing basic operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#816](https://github.com/standard/standard/issues/816)
232 - Specifically, these operators: `+`, `-`, `*`, `/`, `%`, and `**`
233
234## 9.0.0 - 2017-02-28
235
236It's time for a new major version of `standard`! As usual, this release contains a
237bunch of awesomeness to help you keep your code in tip-top shape!
238
239We've added several new rules designed to **catch potential programmer errors**
240(i.e. bugs), as well as rules to make programmer intent **more explicit** in
241certain circumstances.
242
243This release continues our trend of tightening up rules so that, wherever possible,
244there's one "right" way to do things. This design goal is intended to reduce the
245time that teams and maintainers spend giving code review feedback in pull requests.
246
247When you upgrade, consider running `standard --fix` to automatically fix some of the
248errors caught by the new rules in this version.
249
250*Note: If you use the Chai test framework, you will need to make some changes to
251your tests to improve their robustness. [Read about the changes you need to make](https://github.com/standard/standard/issues/690#issuecomment-278533482).*
252
253### New features
254
255- Update ESLint from 3.10.x to 3.15.x
256- 3 additional rules are now fixable with `standard --fix`
257
258### New rules
259
260*(Estimated % of affected standard users, based on test suite in parens)*
261
262- Disallow mixing different operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#566](https://github.com/standard/standard/issues/566) (5%)
263- Enforce 1 newline at end of file (previously 1 or 2 were ok) ([no-multiple-empty-lines](http://eslint.org/docs/rules/no-multiple-empty-lines)) [#733](https://github.com/standard/standard/issues/733) (3%)
264- Disallow Unused Expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#690](https://github.com/standard/standard/issues/690) (3%)
265 - Note: this affects users of the Chai test framework. [Read about the changes you need to make](https://github.com/standard/standard/issues/690#issuecomment-278533482).
266- Disallow redundant return statements ([no-useless-return](http://eslint.org/docs/rules/no-useless-return)) [#694](https://github.com/standard/standard/issues/694) (1%)
267- Disallow Incorrect Early Use ([no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)) [#636](https://github.com/standard/standard/issues/636) (0%)
268- Enforce that Promise rejections are passed an Error object as a reason ([prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)) [#777](https://github.com/standard/standard/issues/777) (0%)
269- Enforce comparing `typeof` expressions against string literals ([valid-typeof](http://eslint.org/docs/rules/valid-typeof)) [#629](https://github.com/standard/standard/issues/629) (0%)
270- Enforce spacing around * in generator functions ([generator-star-spacing](http://eslint.org/docs/rules/generator-star-spacing)) [#724](https://github.com/standard/standard/issues/724) (0%)
271- Disallow Unnecessary Labels ([no-extra-label](http://eslint.org/docs/rules/no-extra-label)) [#736](https://github.com/standard/standard/issues/736) (0%)
272- Disallow spacing between template tags and their literals ([template-tag-spacing](http://eslint.org/docs/rules/template-tag-spacing)) [#755](https://github.com/standard/standard/issues/775) (0%)
273- Disallow padding within switch statements and classes ([padded-blocks](http://eslint.org/docs/rules/padded-blocks)) [#610](https://github.com/standard/standard/issues/610) (0%)
274- Enforce that Symbols are passed a description ([symbol-description](http://eslint.org/docs/rules/symbol-description)) [#630](https://github.com/standard/standard/issues/630) (0%)
275
276### Changed rules
277
278- Relax rule: allow TypeScript Triple-Slash Directives ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#660](https://github.com/standard/standard/issues/660)
279- Relax rule: allow Flow Comments ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#661](https://github.com/standard/standard/issues/661)
280
281## 8.6.0 - 2016-11-22
282
283- Update ESLint from 3.8.x to 3.10.x
284- 3 additional rules are now fixable with `standard --fix`
285
286## 8.5.0 - 2016-10-25
287
288- Update ESLint from 3.7.x to 3.8.x
289- 2 additional rules are now fixable with `standard --fix`
290
291## 8.4.0 - 2016-10-10
292
293- Update ESLint from 3.6.x to 3.7.x
294- 5 additional rules are now fixable with `standard --fix`
295- Use more conservative semver ranges [#654](https://github.com/standard/standard/issues/654)
296
297## 8.3.0 - 2016-09-29
298
299The last release (`8.2.0`) added ES7 support. This release (`8.3.0`) adds ES8
300support ...just 3 days later!
301
302This release should eliminate the need to specify `babel-eslint` as a custom
303parser, since `standard` can now parse ES8 (i.e. ES2017) syntax out of the box.
304That means `async` and `await` will just work.
305
306- Support ES8 (i.e. ES2017) syntax.
307
308## 8.2.0 - 2016-09-26
309
310For many users, this release should eliminate the need to specify `babel-eslint` as
311a custom parser, since `standard` can now parse ES7 (i.e. ES2016) syntax out of the
312box.
313
314- Support ES7 (i.e. ES2016) syntax.
315- Update ESLint from 3.5.x to 3.6.x
316- 4 additional rules are now fixable with `standard --fix`
317
318## 8.1.0 - 2016-09-17
319
320- Update ESLint from 3.3.x to 3.5.x
321- Around 10 additional rules are now fixable with `standard --fix`
322
323## 8.0.0 - 2016-08-23
324
325This release contains a bunch of goodies, including new rules that catch potential
326programmer errors (i.e. bugs) and enforce additional code consistency.
327
328However, the best feature is surely the new `--fix` command line flag to
329automatically fix problems. If you ever used
330[`standard-format`](https://www.npmjs.com/package/standard-format)
331and ran into issues with the lack of ES2015+ support, you'll be happy about
332`--fix`.
333
334`standard --fix` is built into `standard` v8.0.0 for maximum convenience, it
335supports ES2015, and it's lightweight (no additional dependencies since it's part
336of ESLint which powers `standard`). Lots of problems are already fixable, and more
337are getting added with each ESLint release.
338
339`standard` also outputs a message ("Run `standard --fix` to automatically fix
340some problems.") when it detects problems that can be fixed automatically so you
341can save time!
342
343With `standard` v8.0.0, we are also dropping support for Node.js versions prior to
344v4. Node.js 0.10 and 0.12 are in maintenance mode and will be unsupported at the
345end of 2016. Node.js 4 is the current LTS version. If you are using an older
346version of Node.js, we recommend upgrading to at least Node.js 4 as soon as
347possible. If you are unable to upgrade to Node.js 4 or higher, then we recommend
348continuing to use `standard` v7.x until you are ready to upgrade Node.js.
349
350**Important:** We will not be updating the `standard` v7.x versions going forward.
351All bug fixes and enhancements will land in `standard` v8.x.
352
353Full changelog below. Cheers!
354
355### New features
356
357- Upgrade to ESLint v3 (http://eslint.org/docs/user-guide/migrating-to-3.0.0) [#565](https://github.com/standard/standard/pull/565)
358 - **BREAKING:** Drop support for node < 4 (this was a decision made by the ESLint team)
359- Expose ESLint's `--fix` command line flag [#540](https://github.com/standard/standard/issues/540) [standard-engine/#107](https://github.com/Flet/standard-engine/issues/107)
360 - Lightweight, no additional dependencies, fixes dozens of rules automatically
361
362### New rules
363
364*(Estimated % of affected standard users, based on test suite in parens)*
365
366- Enforce placing object properties on separate lines ([object-property-newline](http://eslint.org/docs/rules/object-property-newline)) [#524](https://github.com/standard/standard/issues/524) (2%)
367- Require block comments to be balanced ([spaced-comment "balanced"](http://eslint.org/docs/rules/spaced-comment)) [#572](https://github.com/standard/standard/issues/572) (2%)
368- Disallow constant expressions in conditions ([no-constant-condition](http://eslint.org/docs/rules/no-constant-condition)) [#563](https://github.com/standard/standard/issues/563) (1%)
369- Disallow renaming import, export, and destructured assignments to the same name ([no-useless-rename](http://eslint.org/docs/rules/no-useless-rename)) [#537](https://github.com/standard/standard/issues/537) (0%)
370- Disallow spacing between rest and spread operators and their expressions ([rest-spread-spacing](http://eslint.org/docs/rules/rest-spread-spacing)) [#567](https://github.com/standard/standard/issues/567) (0%)
371- Disallow the Unicode Byte Order Mark (BOM) ([unicode-bom](http://eslint.org/docs/rules/unicode-bom)) [#538](https://github.com/standard/standard/issues/538) (0%)
372- Disallow assignment to native objects/global variables ([no-global-assign](http://eslint.org/docs/rules/no-global-assign)) [#596](https://github.com/standard/standard/issues/596) (0%)
373- Disallow negating the left operand of relational operators ([no-unsafe-negation](http://eslint.org/docs/rules/no-unsafe-negation)) [#595](https://github.com/standard/standard/issues/595) (0%)
374- Disallow template literal placeholder syntax in regular strings ([no-template-curly-in-string](http://eslint.org/docs/rules/no-template-curly-in-string)) [#594](https://github.com/standard/standard/issues/594) (0%)
375- Disallow tabs in file ([no-tabs](http://eslint.org/docs/rules/no-tabs)) [#593](https://github.com/standard/standard/issues/593) (0%)
376
377### Changed rules
378
379- Relax rule: Allow template literal strings (backtick strings) to avoid escaping
 [#421](https://github.com/standard/standard/issues/421)
380- Relax rule: Do not enforce spacing around * in generator functions (https://github.com/standard/standard/issues/564#issuecomment-234699126)
381 - This is a temporary workaround for `babel` users who use async generator functions.
382
383## 7.1.2 - 2016-06-03
384
385- Fix install errors for some users by updating eslint peer dependency
386
387## 7.1.1 - 2016-05-26
388
389- Add back full node 0.10, 0.12 support
390
391## 7.1.0 - 2016-05-16
392
393- Upgrade eslint to version ~2.10.2
394
395## 7.0.1 - 2016-05-04
396
397- Relax "no-duplicate-imports" rule to not include `export` so the following is allowed:
398
399```js
400import { foo } from 'bar'
401export * from 'bar'
402```
403
404## 7.0.0 - 2016-05-02
405
406### Changes
407
408- Upgrade eslint to version ~2.9.0
409- Remove "rules" configuration option [#367](https://github.com/standard/standard/issues/367) from `package.json` (Reasoning is [here](https://github.com/standard/standard/issues/399#issuecomment-180961891))
410
411### New rules
412
413*Estimated % of affected standard users, based on test suite*
414
415- Require camelCase ([camelcase](http://eslint.org/docs/rules/camelcase)) [4%]
416- Disallow unnecessary escape usage ([no-useless-escape](http://eslint.org/docs/rules/no-useless-escape)) [4% -- but, including many bugs]
417- Disallow duplicate imports ([no-duplicate-imports](http://eslint.org/docs/rules/no-duplicate-imports)) [0%]
418- Disallow unmodified conditions of loops ([no-unmodified-loop-condition](http://eslint.org/docs/2.0.0/rules/no-unmodified-loop-condition)) [0%]
419- Disallow whitespace before properties ([no-whitespace-before-property](http://eslint.org/docs/2.0.0/rules/no-whitespace-before-property)) [0%]
420- Disallow control flow statements in `finally` blocks ([no-unsafe-finally](http://eslint.org/docs/rules/no-unsafe-finally)) [0%]
421- Disallow unnecessary computed property keys on objects ([no-useless-computed-key](http://eslint.org/docs/rules/no-useless-computed-key)) [0%]
422- Validate spacing before closing bracket in JSX ([react/jsx-space-before-closing](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-space-before-closing.md)) [0%]
423
424### Removed rules
425
426- Require parens in arrow function arguments ([arrow-parens](http://eslint.org/docs/rules/arrow-parens))
427
428## 6.0.8 - 2016-03-07
429
430- Pin eslint to version ~2.2.0
431- Update eslint-plugin-react to version 4.0.0
432
433## 6.0.7 - 2016-02-18
434
435- Revert: Use install location of standard as eslint `cwd` (fixes [#429](https://github.com/standard/standard/issues/429))
436
437## 6.0.6 - 2016-02-18
438
439- Use eslint 2.1.0
440- Fix: Use install location of standard as eslint `cwd` (fixes [snazzy/#8](https://github.com/standard/snazzy/issues/8))
441
442## 6.0.5 - 2016-02-12
443
444- Use eslint 2.0.0 stable
445
446## 6.0.4 - 2016-02-07
447
448- Relax rule: Validate closing bracket location in JSX ([jsx-closing-bracket-location](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md))
449
450## 6.0.3 - 2016-02-06
451
452- Fix "Error: Cannot find module 'eslint-config-standard-jsx'" with npm 2 (node 0.10, 0.12, 4)
453
454## 6.0.2 - 2016-02-06
455
456- Internal change: Remove .eslintrc file, and use inline config
457
458## 6.0.1 - 2016-02-05
459
460- Internal change: Move .eslintrc file to root folder
461
462## 6.0.0 - 2016-02-05
463
464The goal of this release is to make `standard` faster to install, and simpler to use.
465
466### Remove `standard-format` ([#340](https://github.com/standard/standard/issues/340)) ([#397](https://github.com/standard/standard/issues/397))
467
468- Eliminates 250 packages, and cuts install time in half!
469- For npm 2, install time goes from 20 secs —> 10 secs.
470- For npm 3, install time goes from 24 secs —> 12 secs.
471- To continue using `standard-format`, just install it separately: `npm install -g standard-format`
472
473### React-specific linting rules are removed ([#351](https://github.com/standard/standard/issues/351)) ([#367](https://github.com/standard/standard/issues/367)) ([eslint-config-standard-react/#13](https://github.com/standard/eslint-config-standard-react/pull/13))
474
475- JSX is still supported, and it continues to be checked for style.
476- There were only a few React-specific rules, but they made it extremely difficult for users of alternatives like `virtual-dom` or `deku`, and unecessarily tied `standard` to a single library.
477- JSX rules come from `eslint-config-standard-jsx`. The `eslint-config-standard-react` dependency was removed.
478
479### New Rules
480
481*The percentage (%) of users that rule changes will effect, based on real-world testing of the top ~400 npm packages is denoted in brackets.*
482
483- Disallow `__dirname`/`__filename` string concatenation ([#403](https://github.com/standard/standard/issues/403)) ([no-path-concat](http://eslint.org/docs/2.0.0/rules/no-path-concat)) [5%]
484- Require parens in arrow function arguments
 ([#309](https://github.com/standard/standard/issues/309)) ([arrow-parens](http://eslint.org/docs/2.0.0/rules/arrow-parens.html)) [5%]
485- Ensure that `new Promise()` is instantiated with the parameter names
486`resolve`, `reject` ([#282](https://github.com/standard/standard/issues/282)) ([promise/param-names](https://github.com/xjamundx/eslint-plugin-promise#param-names)) [1%]
487- Enforce Usage of Spacing in Template Strings ([template-curly-spacing](http://eslint.org/docs/2.0.0/rules/template-curly-spacing)) [1%]
488- Template strings are only allowed when necessary, i.e. template string features are being used (eslint got stricter: https://github.com/eslint/eslint/issues/5147) [1%]
489- Better dead code detection after conditional statements (eslint got stricter) [1%]
490- Enforce spaces around `*` in `yield * something` ([#335](https://github.com/standard/standard/issues/335)) ([yield-star-spacing](http://eslint.org/docs/2.0.0/rules/yield-star-spacing)) [0%]
491- Disallow labels on loops/switch statements too (made rule stricter) ([no-labels](http://eslint.org/docs/2.0.0/rules/no-labels.html)) [0%]
492- Disallow unnecessary constructor ([no-useless-constructor](http://eslint.org/docs/2.0.0/rules/no-useless-constructor)) [0%]
493- Disallow empty destructuring patterns ([no-empty-pattern](http://eslint.org/docs/2.0.0/rules/no-empty-pattern)) [0%]
494- Disallow Symbol Constructor ([no-new-symbol](http://eslint.org/docs/2.0.0/rules/no-new-symbol)) [0%]
495- Disallow Self Assignment ([no-self-assign](http://eslint.org/docs/2.0.0/rules/no-self-assign)) [0%]
496
497### Removed Rules
498
499- `parseInt()` radix rule because ES5 fixes this issue ([#384](https://github.com/standard/standard/issues/384))
 ([radix](http://eslint.org/docs/2.0.0/rules/radix.html)) [0%]
500
501### Expose eslint configuration via command line options and `package.json`
502
503For power users, it might be easier to use one of these new hooks instead of forking
504`standard`, though that's still encouraged, too!
505
506- Set eslint "plugins" ([#386](https://github.com/standard/standard/issues/386))
507- Set eslint "rules" ([#367](https://github.com/standard/standard/issues/367))
508- Set eslint "env" ([#371](https://github.com/standard/standard/issues/371))
509
510To set custom ESLint plugins, rules, or envs, use the command line `--plugin`, `--rules`, and `--env` flags.
511
512In `package.json`, use the "standard" property:
513
514```json
515{
516 "standard": {
517 "plugins": [ "my-plugin" ]
518 }
519}
520```
521
522### Upgrade to ESLint v2
523- There may be slight behavior changes to existing rules. When possible, we've noted these in the "New Rules" and "Removed Rules" section.
524
525### Improve test suite
526
527- Rule changes can be tested against every package on npm. For sanity, this is limited to packages with at least 4 dependents. Around ~400 packages.
528
529### Known Issues
530
531- Using prerelease eslint version (2.0.0-rc.0). There may be breaking changes before the stable release.
532- `no-return-assign` behavior changed with arrow functions (https://github.com/eslint/eslint/issues/5150)
533
534### Relevant diffs
535
536- standard ([v5.4.1...v6.0.0](https://github.com/standard/standard/compare/v5.4.1...v6.0.0))
537- eslint-config-standard ([v4.4.0...v5.0.0](https://github.com/standard/eslint-config-standard/compare/v4.4.0...v5.0.0))
538- eslint-config-standard-jsx ([v1.0.0](https://github.com/standard/eslint-config-standard-jsx/commit/47d5e248e2e078eb87619493999e3e74d4b7e70e))
539- standard-engine ([v2.2.4...v3.2.1](https://github.com/Flet/standard-engine/compare/v2.2.4...v3.2.1))
540
541## 5.4.1 - 2015-11-16
542[view diff](https://github.com/standard/standard/compare/v5.4.0...v5.4.1)
543
544### Fixed
545
546* Fix for `standard-engine` change. Fix error tagline.
547
548## 5.4.0 - 2015-11-16
549[view diff](https://github.com/standard/standard/compare/v5.3.1...v5.4.0)
550
551### Added
552
553* eslint-config-standard-react@1.2.0 ([history](eslint-config-standard-react))
554 * Disallow duplicate JSX properties
555
556## 5.3.1 - 2015-09-18
557[view diff](https://github.com/standard/standard/compare/v5.3.0...v5.3.1)
558
559### Changed
560* eslint-plugin-react@3.4.2 ([history](eslint-plugin-react))
561
562## 5.3.0 - 2015-09-16
563[view diff](https://github.com/standard/standard/compare/v5.2.2...v5.3.0)
564
565### Changed
566* eslint-config-standard@4.4.0 ([history][eslint-config-standard])
567 * **New rule:** must have space after semicolon in for-loop ([commit](https://github.com/standard/eslint-config-standard/commit/6e5025eef8900f686e19b4a31836743d98323119))
568 * **New rule:** No default assignment with ternary operator ([commit](https://github.com/standard/eslint-config-standard/commit/0903c19ca6a8bc0c8625c41ca844ee69968bf948))
569 * **New rule:** Require spaces before keywords ([commit](https://github.com/standard/eslint-config-standard/commit/656ba93cda9cd4ab38e032649aafb795993d5176))
570* eslint-config-standard-react@1.1.0 ([history][eslint-config-standard-react])
571* eslint-plugin-react@3.4.0 ([history][eslint-plugin-react])
572* eslint-plugin-standard@1.3.1 ([history][eslint-plugin-standard])
573
574## 5.2.2
575[view diff](https://github.com/standard/standard/compare/v5.2.1...v5.2.2)
576
577### Fixed
578* We have a changelog now, and you're reading it!
579* Minor README update
580* Removed direct dependency on `eslint` (its now moved to [standard-engine](https://github.com/flet/standard-engine))
581
582## 5.2.1 - 2015-09-03
583[view diff](https://github.com/standard/standard/compare/v5.2.0...v5.2.1)
584
585### Changed
586* eslint-config-standard@4.3.1 ([history][eslint-config-standard])
587 * **Revert rule**: Disallow unncessary concatenation of strings
588
589### Fixed
590* eslint-config-standard@4.3.1 ([history][eslint-config-standard])
591 * fix regression with ternary operator handling
592
593## 5.2.0 - 2015-09-03
594[view diff](https://github.com/standard/standard/compare/v5.1.1...v5.2.0)
595
596### Added
597* eslint-config-standard@4.3.0 ([history][eslint-config-standard])
598 * **New rule:** Disallow unncessary concatenation of strings
599 * **New rule:** Disallow duplicate name in class members
600 * **New rule:** enforce spaces inside of single line blocks
601 * **Re-add rule:** padded-blocks ([Closes #170](https://github.com/standard/standard/issues/170))
602
603### Changed
604* Bump `eslint` from 1.1.0 to 1.3.1 ([CHANGELOG][eslint])
605* eslint-plugin-standard@1.3.0 ([history][eslint-plugin-standard])
606 * A small change to make the plugin compatible with browserify which does not affect behavior.
607
608### Fixed
609* eslint-plugin-react@3.3.1 ([CHANGELOG][eslint-plugin-react])
610 * Fix object rest/spread handling.
611* Added white background to badge.svg to make it work with dark backgrounds ([Closes #234](https://github.com/standard/standard/issues/234))
612* Minor updates to README.md
613
614## 5.1.1 - 2015-08-28
615[view diff](https://github.com/standard/standard/compare/v5.1.0...v5.1.1)
616
617### Fixed
618* Update to RULES.md to remove a missing hyperlink
619* Add atom linter information to README.md
620* Fixed duplicated word in the tagline message on the CLI
621* Removed failing repository from tests (yoshuawuyts/initialize)
622
623## 5.1.0 - 2015-08-14
624[view diff](https://github.com/standard/standard/compare/v5.0.2...v5.1.0)
625
626## Fixed
627* eslint-config-standard@4.1.0 ([history][eslint-config-standard])
628 * Added rest/spread feature to `eslintrc.json` to fix [#226](https://github.com/standard/standard/issues/226) and [eslint-plugin-standard#3](https://github.com/xjamundx/eslint-plugin-standard/issues/3)
629* eslint-plugin-react@3.2.2 ([CHANGELOG][eslint-plugin-react])
630 * Fix crash when propTypes don't have any parent
631 * Fix jsx-no-literals reporting errors outside JSX
632
633### Changed
634* Bump eslint from 1.0.0 to 1.2.0 ([CHANGELOG][eslint])
635* Added more test repositories and disabled some that were failing
636* Update bikeshedding link on README.md
637
638## 5.0.2 - 2015-08-06
639[view diff](https://github.com/standard/standard/compare/v5.0.1...v5.0.2)
640
641### Changed
642* eslint-config-standard-react@1.0.4 ([history][eslint-config-standard-react])
643 - **Disable Rule:** react/wrap-multilines
644* Minor README updates
645
646## 5.0.1 - 2015-08-05
647[view diff](https://github.com/standard/standard/compare/v5.0.0...v5.0.1)
648
649## 5.0.0 - 2015-08-03
650[view diff](https://github.com/standard/standard/compare/v4.5.4...v5.0.0)
651
652## 4.5.4 - 2015-07-13
653[view diff](https://github.com/standard/standard/compare/v4.5.3...v4.5.4)
654
655## 4.5.3 - 2015-07-10
656[view diff](https://github.com/standard/standard/compare/v4.5.2...v4.5.3)
657
658## 4.5.2 - 2015-07-02
659[view diff](https://github.com/standard/standard/compare/v4.5.1...v4.5.2)
660
661## 4.5.1 - 2015-06-30
662[view diff](https://github.com/standard/standard/compare/v4.5.0...v4.5.1)
663
664## 4.5.0 - 2015-06-30
665[view diff](https://github.com/standard/standard/compare/v4.4.1...v4.5.0)
666
667## 4.4.1 - 2015-06-29
668[view diff](https://github.com/standard/standard/compare/v4.4.0...v4.4.1)
669
670## 4.4.0 - 2015-06-27
671[view diff](https://github.com/standard/standard/compare/v4.3.3...v4.4.0)
672
673## 4.3.3 - 2015-06-26
674[view diff](https://github.com/standard/standard/compare/v4.3.2...v4.3.3)
675
676## 4.3.2 - 2015-06-23
677[view diff](https://github.com/standard/standard/compare/v4.3.1...v4.3.2)
678
679## 4.3.1 - 2015-06-18
680[view diff](https://github.com/standard/standard/compare/v4.3.0...v4.3.1)
681
682## 4.3.0 - 2015-06-16
683[view diff](https://github.com/standard/standard/compare/v4.2.1...v4.3.0)
684
685## 4.2.1 - 2015-06-12
686[view diff](https://github.com/standard/standard/compare/v4.2.0...v4.2.1)
687
688## 4.2.0 - 2015-06-11
689[view diff](https://github.com/standard/standard/compare/v4.1.1...v4.2.0)
690
691## 4.1.1 - 2015-06-11
692[view diff](https://github.com/standard/standard/compare/v4.1.0...v4.1.1)
693
694## 4.1.0 - 2015-06-10
695[view diff](https://github.com/standard/standard/compare/v4.0.1...v4.1.0)
696
697## 4.0.1 - 2015-06-01
698[view diff](https://github.com/standard/standard/compare/v4.0.0...v4.0.1)
699
700## 4.0.0 - 2015-05-30
701[view diff](https://github.com/standard/standard/compare/v3.9.0...v4.0.0)
702
703[eslint-config-standard-react]: https://github.com/standard/eslint-config-standard-react/commits/master
704[eslint-config-standard]: https://github.com/standard/eslint-config-standard/commits/master
705[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md
706[eslint-plugin-standard]: https://github.com/xjamundx/eslint-plugin-standard/commits/master
707[eslint]: https://github.com/eslint/eslint/blob/master/CHANGELOG.md