Repository navigation
v1.1.1
Patch Changes
-
#6
efebb80Thanks @stevensacks! - Closeprefer-arrow-functionsupstream gap forexport default function NamedFn(){}viano-restricted-syntaxselector.The
eslint-plugin-prefer-arrow-functionsplugin has a hardcoded exemption (guard.js:hasNameAndIsExportedAsDefaultExport) that silently passes named default-exported declarations regardless ofallowNamedFunctionssetting. This release adds ano-restricted-syntaxrule with selectorExportDefaultDeclaration > FunctionDeclarationto flag the pattern. Convert toconst Name = () => {}; export default Name;instead. Ignored on**/*.d.tssince ambient declarations have no body to convert.