-
-
Notifications
You must be signed in to change notification settings - Fork 681
⭐️New: Add vue/no-restricted-syntax
rule
#758
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
Conversation
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]. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
docs/rules/no-restricted-syntax.md
Outdated
|
||
### `"VElement > VExpressionContainer CallExpression"` | ||
|
||
Forbind call expressions on mustache interpolation. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above ☝️
@michalsnik Thank you for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Close #689