当插件的函数返回真hintings
时isDevelopingAddon
运行插件。要禁用它,你应该给hintingEnabled: function() { return false; }
在index.js
。
相关问题:https : //github.com/ember-cli/ember-cli/issues/5594
——
编辑
返回false
从hintingEnabled
还禁止以棉短绒在附加上运行。因此,如果您想在附加组件中启用 linter 并在另一个应用程序中使用时禁用它,请使用以下检查:
return this.moduleName() === this.app.project.name()
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句