-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We currently have https://www.npmjs.com/package/eslint-plugin-prefer-arrow configured which enforces the use of arrow functions everywhere. (This rule also appears to be unmaintained)
Enforcing this for anonymous functions and in cases where this is used makes sense as this avoids potential errors.
But in all other cases it is pointless and potentially even worsens code quality. See https://github.com/siemens/ngx-datatable/pull/283/files for the impact on the datatable.
There is an alternative eslint-rule available that covers the relevant cases mentioned above: https://eslint.org/docs/latest/rules/prefer-arrow-callback .
We should switch to this rule.
Any options?
mistrykaran91, dr-itz and Lexor42kfenner and fh1ch
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request