bahmutov / eslint-rules

My custom eslint rules in addition to the ones provided at http://eslint.org/
97 stars 16 forks source link

Do not consider a labeled statement to be valid code #11

Open DrewML opened 8 years ago

DrewML commented 8 years ago

Implement the request from #10.

Two things to note:

  1. It wasn't super clear what your preferred way of writing tests in this repo is - can you provide some direction?
  2. I had to use --no-verify to bypass the pre-commit hook that's installed, because the existing line length in no-commented-out-code.js exceeds the max value set in .eslintrc (70). Just let me know how you want me to fix that (changing config vs shortening the line lengths).

Feedback welcome :)