atomspace / eslint-plugin-naming-convention

ESLint plugin to validate identifiers names according to a convention
MIT License
1 stars 0 forks source link

Higher order function naming convention #22

Open constgen opened 5 years ago

constgen commented 5 years ago

Functions that start with on..., e.g. onWindowResize, onMount always should be higher order functions that allow a callback as an argument. They can be called in the code with callbacks but can't be passed as arguments to another functions.