-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generate_kibana_discover_url is false Fix pagertree_proxy Code modification for vue3 compatibility axios 1.6.4 to 1.6.5 jsdom 23.0.1 to 23.2.0 add eslint-plugin-rulesdir
- Loading branch information
1 parent
732f55f
commit 6ab3c13
Showing
122 changed files
with
875 additions
and
675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
'use strict' | ||
|
||
const utils = require('eslint-plugin-vue/lib/utils') | ||
|
||
module.exports = { | ||
meta: { | ||
type: 'problem', | ||
docs: { | ||
description: | ||
'disallow using v-model for custom component is affected by a breaking change in Vue 3.', | ||
categories: undefined, | ||
url: 'https://v3-migration.vuejs.org/ja/breaking-changes/v-model.html', | ||
}, | ||
fixable: null, | ||
schema: [ | ||
{ | ||
type: 'object', | ||
properties: { | ||
ignoreComponentNames: { | ||
type: 'array', | ||
}, | ||
}, | ||
}, | ||
], | ||
messages: { | ||
error: | ||
'カスタムコンポーネントへのv-modelの使用は、Vue 3の破壊的変更の影響を受けるので使用しないでください。\nhttps://v3-migration.vuejs.org/ja/breaking-changes/v-model.html', | ||
}, | ||
}, | ||
/** @param {RuleContext} context */ | ||
create(context) { | ||
const ignoreComponentNames = context.options[0]?.ignoreComponentNames ?? [] | ||
return utils.defineTemplateBodyVisitor(context, { | ||
"VAttribute[directive=true][key.name.name='model']"(node) { | ||
const element = node.parent.parent | ||
if ( | ||
utils.isCustomComponent(node.parent.parent) && | ||
!ignoreComponentNames.includes(element.name) | ||
) { | ||
context.report({ | ||
node, | ||
loc: node.loc, | ||
messageId: 'error', | ||
}) | ||
} | ||
}, | ||
}) | ||
}, | ||
} |
Oops, something went wrong.