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

24 строки
597 B

  1. /**
  2. * @author Yosuke Ota
  3. * See LICENSE file in root directory for full license.
  4. */
  5. 'use strict'
  6. module.exports = {
  7. supported: '>=3.0.0',
  8. /** @param {RuleContext} context @returns {TemplateListener} */
  9. createTemplateBodyVisitor(context) {
  10. return {
  11. /** @param {VDirectiveKey & { argument: VExpressionContainer | VIdentifier }} node */
  12. "VAttribute[directive=true] > VDirectiveKey[name.name='model'][argument!=null]"(
  13. node
  14. ) {
  15. context.report({
  16. node: node.argument,
  17. messageId: 'forbiddenVModelArgument'
  18. })
  19. }
  20. }
  21. }
  22. }