Skip to content

Commit

Permalink
Add ES6 only hint to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
k15a committed Mar 1, 2017
1 parent 0611e21 commit 531d04d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/rules/exports-last.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

This rule reports all export declaration which come before any non-export statements.


## This will be reported

```JS
Expand Down Expand Up @@ -39,3 +40,9 @@ export const str = 'foo'
## When Not To Use It

If you don't mind exports being sprinkled throughout a file, you may not want to enable this rule.

#### ES6 exports only

The exports-last rule is currently only working on ES6 exports. You may not want to enable this rule if you're using CommonJS exports.

If you need CommonJS support feel free to open an issue or create a PR.

0 comments on commit 531d04d

Please sign in to comment.