Skip to content

v1.1.1

Choose a tag to compare

@stevensacks stevensacks released this 29 Apr 19:40
· 76 commits to main since this release
25ca459

Patch Changes

  • #6 efebb80 Thanks @stevensacks! - Close prefer-arrow-functions upstream gap for export default function NamedFn(){} via no-restricted-syntax selector.

    The eslint-plugin-prefer-arrow-functions plugin has a hardcoded exemption (guard.js:hasNameAndIsExportedAsDefaultExport) that silently passes named default-exported declarations regardless of allowNamedFunctions setting. This release adds a no-restricted-syntax rule with selector ExportDefaultDeclaration > FunctionDeclaration to flag the pattern. Convert to const Name = () => {}; export default Name; instead. Ignored on **/*.d.ts since ambient declarations have no body to convert.