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

⭐️New: Add vue/no-restricted-syntax rule #758

Merged
merged 3 commits into from
Jan 9, 2019

Conversation

ota-meshi
Copy link
Member

Close #689

Please see [no-restricted-syntax] for detailed options.

You can include the AST created by [vue-eslint-parser] in the selector.
To know more about certain nodes in produced AST, please go [vue-eslint-parser - AST docs].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put link to the AST docs here?

Copy link
Member Author

@ota-meshi ota-meshi Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is defined in line 50.


### `"VElement > VExpressionContainer CallExpression"`

Forbind call expressions on mustache interpolation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forbids call expressions inside mustache interpolation.

]
},

// Forbind call expressions on mustache interpolation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above ☝️

@ota-meshi
Copy link
Member Author

@michalsnik Thank you for your review.
I fixed it. so please check again.

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michalsnik michalsnik merged commit 9c49dcc into master Jan 9, 2019
@michalsnik michalsnik deleted the add-rule/no-restricted-syntax branch January 9, 2019 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants