Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vue/no-restricted-v-bind rule #1191

Merged
merged 3 commits into from Jun 7, 2020
Merged

Conversation

ota-meshi
Copy link
Member

This PR adds vue/no-restricted-v-bind rule that disallow specific argument in v-bind.

The following options can be used to report misuse such as :v-model.

{
  "vue/no-restricted-v-bind": ["error", "/^v-/"]
}

So, close #328, close #935.


The following options can be used to report misuse such as :click.

{
  "vue/no-restricted-v-bind": ["error", "click"]
}

So, close #740.


The following options can be used to report typos such as :stlye.

{
  "vue/no-restricted-v-bind": ["error", "stlye"]
}

refs #992.

@ota-meshi ota-meshi merged commit ba230cd into master Jun 7, 2020
@ota-meshi ota-meshi deleted the add-rule/no-restricted-v-bind branch June 7, 2020 08:19
@sktguha
Copy link

sktguha commented Jun 10, 2020

@ota-meshi that's great news . may I ask if you got the idea regarding to flag :click in eslint from my issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment