Closed
Description
As we start to move over to ES6, I wanted to propose using ESLint over JSHint.
Reasons:
- More flexible, powerful
- Larger set of more configurable rules
- Supports custom rules, we could create our own
vexflow
specific set of eslint rules that suggest best practices, or warn of improper usage.
- Some errors can be automatically fixed with a CLI flag:
eslint --fix
- It's currently winning the linter wars
- JSCS team decided to make 3.0 the last major version and join the ESLint team
I personally use the airbnb style guide's eslint-config
, with some tweaks. For the most part it's a great starting place, but I find it overly strict in some cases. But in general, VexFlow would benefit significantly from having stricter linting rules.