Question: eslint how to disable rule?
Answer: To disable rule warnings in an entire file, put a /* eslint-disable */ block comment at the top of the file: /* eslint-disable */ alert('foo'); You can also disable or enable specific rules for an entire file: /* eslint-disable no-alert */ alert('foo');