Don't be intimidated. Look at this as an example:
https://github.com/eslint/eslint/blob/master/lib/rules/max-depth.js