Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Fix npm lint #25

Merged
merged 5 commits into from Jul 28, 2020
Merged

Fix npm lint #25

merged 5 commits into from Jul 28, 2020

Conversation

ridv
Copy link
Contributor

@ridv ridv commented Jul 28, 2020

Description:

  • Upgraded eslint to latest major version 7.5.0
  • Locked eslint-react-plugin at version 7.20.3 as 7.20.4 has some issues.
  • Added UNSAFE prefix to required functions in react code as well as adding a rule to the linter such that it won't complain about failing the camelcase requirement for these functions.

Testing Done:

  • Built locally

@ridv ridv added this to the 0.23.0 milestone Jul 28, 2020
@ridv ridv self-assigned this Jul 28, 2020
@ridv
Copy link
Contributor Author

ridv commented Jul 28, 2020

@zorro786 can you sanity check this when you get a chance?

"eslint-config-standard": "^10.2.1",
"eslint-config-standard-react": "^5.0.0",
"eslint-plugin-chai-friendly": "^0.4.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react": "7.20.3",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is removing ^ intended? It will not affect the installation if there is no 4th version field.

Copy link
Contributor Author

@ridv ridv Jul 28, 2020

Choose a reason for hiding this comment

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

Yup, it's intended because otherwise it'll upgrade to 7.20.4 (next minor version) which is currently broken.

I decided to pin it to 7.20.3 to avoid issues: jsx-eslint/eslint-plugin-react#2728 (comment)

Copy link
Collaborator

@zorro786 zorro786 left a comment

Choose a reason for hiding this comment

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

LGTM

@ridv ridv merged commit 5ee2715 into aurora-scheduler:master Jul 28, 2020
@ridv ridv deleted the fixNpmLint branch July 28, 2020 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants