-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 warnings with FontAwesome5 for web #825
Conversation
5988a6c
to
85579b5
Compare
Because of the above error, I ran |
85579b5
to
3dbec64
Compare
Thanks, deferring to @hampustagerud on this one, but LGTM. Could you revert the change to the |
If I do not update yarn.lock, eslint is not pass (the above error will occur). |
The fix itself looks fine but upgrading all those packages seems unnecessary to me. Is the warning from the |
yarn.lock
Outdated
eslint-visitor-keys@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" | ||
|
||
eslint@^4.3.0: |
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.
Guessing there is a problem with eslint on your machine cause I can't seem to be able to reproduce it. Maybe try reinstalling node_modules/
?
3dbec64
to
83b408f
Compare
If you are using npm, the test will pass. So, the problem is not machine problem. |
yarn.lock
Outdated
octicons@^7.2.0: | ||
version "7.2.0" | ||
resolved "https://registry.yarnpkg.com/octicons/-/octicons-7.2.0.tgz#a721635f73c774d7ffda56a83a29dbde03fc4b53" | ||
octicons@^8.0.0: |
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.
The diff of this library occurs by executing only the yarn
command.
I just updated eslint-plugin-react. |
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.
I have changed how propTypes are created which seems to pass the tests better, could you please try it out? We don't have to force people to upgrade the packges if it works and that would be good 🙂
light: PropTypes.bool, | ||
solid: PropTypes.bool, | ||
}); | ||
static propTypes = [ |
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.
I changed this and now both npm and yarn tests passes, please try 🙂
package.json
Outdated
@@ -78,7 +78,7 @@ | |||
"eslint-plugin-import": "^2.7.0", | |||
"eslint-plugin-jsx-a11y": "^5.1.1", | |||
"eslint-plugin-prettier": "^2.1.2", | |||
"eslint-plugin-react": "^7.1.0", | |||
"eslint-plugin-react": "^7.11.1", |
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.
Still think we can do this without upgrading packages!
dd74389
to
6cc77d8
Compare
Extra fix, never edit code on github.com
6cc77d8
to
a65e0de
Compare
It's wonderful !! |
Do you think you could remove the changes to |
I think it is no problem 😃 |
I fixed them.