Skip to content

Commit 62f8cec

Browse files
Update packages/linting/rules/src/single-export-per-file/index.ts
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6bc42d9 commit 62f8cec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/linting/rules/src/single-export-per-file

packages/linting/rules/src/single-export-per-file/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function isDefaultClassExport(node: Node): boolean {
6767
*/
6868
function isConstOrLetExport(node: Node): boolean {
6969
// const/let use lexical_declaration, var uses variable_declaration
70-
return node.children.some((c) => c.type === 'lexical_declaration' || c.type === 'variable_declaration');
70+
return node.children.some(
71+
(c) => c.type === 'lexical_declaration' || c.type === 'variable_declaration',
72+
);
7173
}
7274

7375
/**

0 commit comments

Comments
 (0)