See T146748: Lint JS sources dependency graph against ResourceModules configuration for context.
Feature request: resource-modules/issues/2
In order to avoid error reporting in the CI linting in special situations
- like in MobileFrontend/resources/mobile.editor.overlay/EditorOverlay.js#L165 where 'visualeditor-mweditmode-tooltip' is used but not defined in module config because it is defined in another extension
We need to be able to disable parsing of parts of the code using special comment syntax (in the same vein of // eslint-disable)
The remaining work involves setting up the Jenkins job to run on every commit. We may need help from Release Engineering to do this.
AC
- resource-modules has a new feature for enabling/disabling linting with comments
- MobileFrontend lints correctly and the linter is disabled for the line MobileFrontend/resources/mobile.editor.overlay/EditorOverlay.js#L165
- https://gerrit.wikimedia.org/r/#/c/312850/ Passes the check experimental checks