Initial commit: GamePortrait 竖屏版 - 深色豪华主题

This commit is contained in:
li
2026-01-16 17:47:53 +08:00
commit 40976e4b45
26611 changed files with 2843638 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
/**
* @author Przemyslaw Falowski (@przemkow)
* @fileoverview This rule checks whether v-model used on custom component do not have an argument
*/
'use strict'
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const utils = require('../utils')
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
module.exports = {
meta: {
type: 'problem',
docs: {
description:
'disallow adding an argument to `v-model` used in custom component',
categories: ['essential'],
url: 'https://eslint.vuejs.org/rules/no-v-model-argument.html'
},
fixable: null,
schema: [],
messages: {
vModelRequireNoArgument: "'v-model' directives require no argument."
}
},
/** @param {RuleContext} context */
create(context) {
return utils.defineTemplateBodyVisitor(context, {
/** @param {VDirective} node */
"VAttribute[directive=true][key.name.name='model']"(node) {
const element = node.parent.parent
if (node.key.argument && utils.isCustomComponent(element)) {
context.report({
node,
loc: node.loc,
messageId: 'vModelRequireNoArgument'
})
}
}
})
}
}