Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
23
Frontend-Learner/node_modules/eslint-plugin-vue/lib/rules/syntaxes/v-model-argument.js
generated
vendored
Normal file
23
Frontend-Learner/node_modules/eslint-plugin-vue/lib/rules/syntaxes/v-model-argument.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @author Yosuke Ota
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
supported: '>=3.0.0',
|
||||
/** @param {RuleContext} context @returns {TemplateListener} */
|
||||
createTemplateBodyVisitor(context) {
|
||||
return {
|
||||
/** @param {VDirectiveKey & { argument: VExpressionContainer | VIdentifier }} node */
|
||||
"VAttribute[directive=true] > VDirectiveKey[name.name='model'][argument!=null]"(
|
||||
node
|
||||
) {
|
||||
context.report({
|
||||
node: node.argument,
|
||||
messageId: 'forbiddenVModelArgument'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue