版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

28 строки
611 B

  1. /**
  2. * @author Yosuke Ota
  3. * See LICENSE file in root directory for full license.
  4. */
  5. 'use strict'
  6. module.exports = {
  7. deprecated: '3.1.0',
  8. supported: '>=3.0.0',
  9. /** @param {RuleContext} context @returns {TemplateListener} */
  10. createTemplateBodyVisitor(context) {
  11. /**
  12. * Reports `v-is` node
  13. * @param {VDirective} vIsAttr node of `v-is`
  14. * @returns {void}
  15. */
  16. function reportVIs(vIsAttr) {
  17. context.report({
  18. node: vIsAttr.key,
  19. messageId: 'forbiddenVIs'
  20. })
  21. }
  22. return {
  23. "VAttribute[directive=true][key.name.name='is']": reportVIs
  24. }
  25. }
  26. }