brandongregoryscott / eslint-plugin-collation

ESLint plugin for making your code easier to read, with autofix and TypeScript support
https://eslint-plugin-collation.brandonscott.me
Apache License 2.0
4 stars 0 forks source link

`exports-at-eof` erroneously throwing errors #49

Closed brandongregoryscott closed 2 years ago

brandongregoryscott commented 2 years ago

Given the following component structure, it's throwing errors:

interface FileSelectMenuProps {

}

interface FileSelectMenuFilters {

}

const defaultFilters: FileSelectMenuFilters = {};

const FileSelectMenu: React.FC<FileSelectMenuProps> = (
    props
) => {
    return <div />
}

export type { FileSelectMenuProps, FileSelectMenuFilters };
export { FileSelectMenu, defaultFilters };
[collation] ERROR exports-at-eof file-select-menu.tsx:178 Expected export of 'FileSelectMenuProps, FileSelectMenuFilters' to appear at the end of the file.
[collation] ERROR exports-at-eof file-select-menu.tsx:179 Expected export of 'FileSelectMenu, defaultFilters' to appear at the end of the file.