Fix the failing linting step#723
Conversation
|
Note: The failing test is a flaky test that passes when it's re-run |
|
@ingeniumed This looks good! I noticed some libraryish files in I'm looking into that flaky test failure now. |
| jest: true, | ||
| }, | ||
| rules: { | ||
| "no-prototype-builtins": 0, |
There was a problem hiding this comment.
@ingeniumed Do you think any of these rules are more important than the others and we can apply them now? Or maybe we can make issues to address the more important exceptions (no-eval) soon. I get ignoring huge refactorings like valid-jsdoc, but it'd be great if low-hanging code quality and safety rules would be implemented.
There was a problem hiding this comment.
I wanted to avoid adding more scope to this PR by resolving those, that's really why I avoided adding it in here. I also think as we build more features into this plugin, we are likely to change/upgrade that code (which might happen anyways thanks to the package modernizations)
Good point, I'll revert that. In another PR it might be worth seeing if there's a built in equivalent of that library now, as that could allow us to drop that code. |
…rom eslint to avoid causing any major bugs
Description
As the next step for modernization, this PR:
@automattic/eslint-plugin-wpvipas a starting point. There are a lot of rules being switched off in order to get the linting to pass. This will slowly be fixed as the underlying code is updated as well as the node/installed packages.