Skip to content

Commit 4c54e9e

Browse files
committed
Added test and note to CHANGELOG
1 parent cd37890 commit 4c54e9e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
55

66
## [Unreleased]
77
### Fixed
8+
- [`prefer-default-export`] handles flow `export type` ([#484])
89
- [`prefer-default-export`] handles re-exported default exports ([#609])
910
- Fix crash when using `newline-after-import` with decorators ([#592])
1011
- Properly report `newline-after-import` when next line is a decorator

tests/src/rules/prefer-default-export.js

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ ruleTester.run('prefer-default-export', rule, {
6666
import * as foo from './foo';`,
6767
}),
6868

69+
test({
70+
code: `export type UserId = number;`,
71+
parser: 'babel-eslint',
72+
}),
73+
6974
// ...SYNTAX_CASES,
7075
],
7176
invalid: [

0 commit comments

Comments
 (0)