Skip to content

$http.delete shows warning "avoid using JavaScript unary operator as property name" (fix #11090) #11143

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tyschroed
Copy link

Update error-detector to look for . prefix

fix #11090

What kind of change does this PR introduce? (check at least one)

  • [ X] Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • [X ] No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

@@ -88,4 +88,13 @@ describe('Options template', () => {
`avoid using JavaScript unary operator as property name: "delete()" in expression @click="delete('Delete')"`
).toHaveBeenWarned()
})

it('warn error in generated function (v-on)', () => {

Choose a reason for hiding this comment

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

The spec name imo should be something like,
"should not warn dot prefixed keywords".

As the warning would appear even on general JS objects with a delete property and not just $http.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$http.delete shows warning "avoid using JavaScript unary operator as property name"
3 participants