• Robert Knight's avatar
    Convert remaining anonymous callbacks to arrow functions · 088864e9
    Robert Knight authored
    We've been gradually converting anonymous functions to arrow functions
    since adopting ES6. This commit uses ESLint to finish the process by
    converting the remaining non-named, non-`this`-using callbacks to arrow
    functions.
    
     - Enable `prefer-arrow-callbacks` lint rule. The `allowNamedFunctions`
       option is enabled because we have a few instances (eg. in
       gulpfile.js) of explicitly naming functions for use in debugging /
       logging etc.
    
     - Run `eslint --fix .` and `yarn format` to automatically fix up the
       code
    088864e9
Name
Last commit
Last update
..
gulp Loading commit data...
.eslintrc Loading commit data...
create-github-release.js Loading commit data...
deploy-to-s3.js Loading commit data...
generate-change-list.js Loading commit data...
generate-pdfjs-template.py Loading commit data...
jsdoc-from-proptypes.js Loading commit data...
release-it Loading commit data...
update-pdfjs Loading commit data...
wait-for-npm-release.sh Loading commit data...