docs: Add `dependsOn` to lint task for proper cache invalidation (#11384)
## Summary
- Adds `dependsOn: ["^lint"]` to the ESLint lint task example
- Adds explanation of why this is needed for cache invalidation when
config packages change
Fixes #11369