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
@@ -0,0 +1,33 @@
/**
* @author Yosuke Ota
* See LICENSE file in root directory for full license.
*/
'use strict'
// ------------------------------------------------------------------------------
// Helpers
// ------------------------------------------------------------------------------
const BUILTIN_MODIFIERS = new Set(['lazy', 'number', 'trim'])
module.exports = {
supported: '>=3.0.0',
/** @param {RuleContext} context @returns {TemplateListener} */
createTemplateBodyVisitor(context) {
return {
/** @param {VDirectiveKey} node */
"VAttribute[directive=true] > VDirectiveKey[name.name='model'][modifiers.length>0]"(
node
) {
for (const modifier of node.modifiers) {
if (!BUILTIN_MODIFIERS.has(modifier.name)) {
context.report({
node: modifier,
messageId: 'forbiddenVModelCustomModifiers'
})
}
}
}
}
}
}