Closed darkbasic closed 15 hours ago
Yes, I suppose generated code should not be linted. And according to the first line in the example you provided, there's an attempt to prevent it from being linted. But this rule throws a wrench in that attempt.
So, I suggest not relying on those generated eslint-disable
comments. They are a clever attempt, but it's probably safer to exclude the files themselves, assuming they are entirely generated.
ESLint is not suitable for generated code.
Almost every automatically generated code/typings starts with
eslint-disable
:That makes it unsuitable for
eslint-comments/require-description
.