TristonJ / eslint-plugin-prefer-arrow

ESLint plugin to prefer arrow functions
MIT License
54 stars 10 forks source link

allowStandaloneDeclarations does not apply to exported functions #18

Closed neelance closed 4 years ago

neelance commented 4 years ago

Thanks for adding the allowStandaloneDeclarations option. However, this is still disallowed:

export function test() {
}

I think it should be allowed if allowStandaloneDeclarations is set.

TristonJ commented 4 years ago

This has been fixed in https://github.com/TristonJ/eslint-plugin-prefer-arrow/commit/67c1eb93246624b8cc4d3edeb61ad7815c23f62b

CommonJS style (module.exports and exports) as well as ESM style (export and export default) exports will now be allowed if using the allowStandaloneDeclarations option.

neelance commented 4 years ago

Thank you. It works well.