-
Notifications
You must be signed in to change notification settings - Fork 66
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
Chore: remove duplicate prettier configs #125
Conversation
Looks like the Netlify build is failing due to it attempting to install |
9af118d
to
651b00b
Compare
…work - initially disable newly breaking rules - use NodeJS 10.18.1 (latest 10.x - LTS/12.x has issues with the fsevents dependency) - add nvmrc with matching version to circleci build image closes #37
651b00b
to
8a5f9f4
Compare
"eslint-config-prettier": "3.3.0", | ||
"eslint-plugin-instawork": "0.0.2", | ||
"eslint-plugin-prettier": "3.0.0", | ||
"eslint": "5.16.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.
Are there any breaking changes in this eslint upgrade that may require changes in the custom rules in eslint-plugin-instawork
?
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.
Not that I'm aware of - 5.16.0
is the same version used by eslint-plugin-instawork
"react/destructuring-assignment": "off", | ||
"react/jsx-sort-props": "off", | ||
"react/no-access-state-in-setstate": "off", | ||
"sort-keys": "off" |
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.
We follow a convention of sorting keys alphabetically. This seems to bypass that if I'm not mistaken?
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.
Correct, though it is intended to be temporary. Upgrading to eslint-plugin-instawork@0.4.0
resulted in 200+ new linting errors. I decided to leave fixing the errors to different PR - see #126 so this one could be kept as small as possible.
"no-restricted-globals": "off", | ||
"prefer-destructuring": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/jsx-sort-props": "off", |
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.
We follow a convention of sorting props alphabetically. This seems to bypass that if I'm not mistaken?
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.
Correct, though it is intended to be temporary. Upgrading to eslint-plugin-instawork@0.4.0
resulted in 200+ new linting errors. I decided to leave fixing the errors to different PR - see #126 so this one could be kept as small as possible.
"import/no-cycle": "off", | ||
"lines-between-class-members": "off", | ||
"no-else-return": "off", | ||
"no-restricted-globals": "off", | ||
"prefer-destructuring": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/jsx-sort-props": "off", | ||
"react/no-access-state-in-setstate": "off", | ||
"sort-keys": "off" |
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 think some of them should be added to eslint-plugin-instawork
instead of hyperview repo individually. Could you also consult @flochtililoch for these changes? Some of them were intentionally added in eslint-plugin-instawork
.
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.
See my other comments - these are intended to be temporary.
5345ad0
to
a404e4d
Compare
Thanks for your first contribution to Hyperview repo, @DanielSchaffer! |
Some of the changes here overlap with #215, closing this for now |
Updates linting configurations, dependencies, and runtime versions to allow using latest
eslint-plugin-prettier
babel-eslint
,eslint
,prettier
,pretty-quick
to match versions used byeslint-plugin-prettier
@babel/core
, required byeslint
10.18.1
:@babel/core
does not support the existing build version (8.7), and the 8.x line is EOL as of 12/31/2019.10.18.1
is the most up to date from 10.x, which is still in extended maintenance