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

Fix issues with props #632

Merged
merged 7 commits into from
Nov 10, 2018
Merged

Fix issues with props #632

merged 7 commits into from
Nov 10, 2018

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Nov 6, 2018

With those changes, its going to be easier to add support for classes in feature

  • vue/prop-name-casing: is working now with array props [literals]
  • vue/prop-name-casing: reports all errors if there are non Literal keys in it
  • vue/require-default-prop: allow to use shorthand, properties and function calls
  • vue/require-prop-types: reports names for types different than literals
  • vue/require-prop-types: fix false positive error in when is set to empty array
  • vue/require-prop-types: will return now errors about each prop from ArrayExpression
  • add new getComponentProps helper to easily deal with props
  • fix spread operator issues across all prop related rules

fix issue: #596
fix issue #595

* prop-name-casing: is working now with array props [literals]
* prop-name-casing: reports all errors if there are non Literal keys in it
* require-prop-types: reports names for types diffrent than literals
* add new getPropsProperties helper to easly deal with props
* fix issue vuejs#596
* allow to use shorthand
@armano2 armano2 changed the title WIP: Fix issues with props Fix issues with props Nov 6, 2018
@armano2 armano2 changed the title Fix issues with props WIP: Fix issues with props Nov 6, 2018
@armano2 armano2 changed the title WIP: Fix issues with props Fix issues with props Nov 6, 2018
tests/lib/utils/index.js Outdated Show resolved Hide resolved
tests/lib/utils/index.js Outdated Show resolved Hide resolved
tests/lib/utils/index.js Outdated Show resolved Hide resolved
lib/utils/index.js Outdated Show resolved Hide resolved
lib/rules/require-prop-types.js Outdated Show resolved Hide resolved
lib/rules/require-valid-default-prop.js Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
@armano2
Copy link
Contributor Author

armano2 commented Nov 7, 2018

@michalsnik all requested changes are applied,
additionally i made interface of getComponentProps more like getComputedProperties

armano2 added a commit to armano2/eslint-plugin-vue that referenced this pull request Nov 7, 2018
* rename `getPropsProperties` to `getComponentProps`  …
* fix false error in `require-prop-types` when is set to empty array
* `require-prop-types` will return now errors about each prop from ArrayExpression
* add more tests
lib/rules/require-prop-type-constructor.js Outdated Show resolved Hide resolved
lib/rules/require-prop-type-constructor.js Outdated Show resolved Hide resolved
lib/rules/require-prop-type-constructor.js Outdated Show resolved Hide resolved
lib/rules/require-valid-default-prop.js Outdated Show resolved Hide resolved
lib/utils/index.js Outdated Show resolved Hide resolved
tests/lib/rules/require-prop-types.js Outdated Show resolved Hide resolved
@armano2
Copy link
Contributor Author

armano2 commented Nov 10, 2018

@michalsnik requested changes applied

@michalsnik michalsnik merged commit 6032f21 into vuejs:master Nov 10, 2018
@armano2 armano2 deleted the props branch November 10, 2018 22:18
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