-
Notifications
You must be signed in to change notification settings - Fork 71
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
Bump eslint
to version v8
#952
Conversation
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.
LGTM, we just need to get CI passing. Not sure why puppeteer is throwing a fit all of the sudden. I can't see anything that might have changed it
const { field: sortable, direction: sortDirection } = ( | ||
sorting as SortingOptions | ||
).sort; |
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.
Feel like I personally prefer the old version of this, but we can follow up on code style in another task
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 feel the same way. I'm not a big fan of Prettier, but it's used in the project regardless.
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.
CI is passing :D
@@ -12,19 +12,19 @@ | |||
// This file uses RGBA literal values responsibly | |||
// This file uses off-pattern indentation to be more readable | |||
|
|||
// sass-lint:disable no-color-literals, no-color-keywords, indentation, quotes | |||
// sass-lint:disable no-color-literals, no-color-keywords, indentation, quotes, hex-length hex-notation leading-zero |
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'm wondering if there was really a need to disable "hex-length", "hex-notation", "leading-zero"? I've also noticed this in other files as well
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.
They would trigger sass-lint
errors if not muted
/* eslint-disable import/named */ | ||
import { | ||
FixedSizeList, | ||
ListProps, | ||
ListChildComponentProps as ReactWindowListChildComponentProps, | ||
areEqual, | ||
} from 'react-window'; | ||
/* eslint-enable import/named */ |
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.
Can we avoid these disabling comments, maybe we can add some rules to eslint config?
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 issue should be resolved by the typings for react-window, which is out of the scope of this pull request. Personally, I prefer to avoid making changes to the eslint config and to keep it as limited as possible
9329b65
to
03450ba
Compare
It seems like there are build errors caused by maybe a prettier api change? Seems to be an issue on these lines: oui/scripts/derive-sass-variable-types.js Lines 55 to 56 in a5576f3
|
dd509bf
to
6ef0c94
Compare
Description
Please review
eslint
update to version 8.46.0The primary intent of this PR is to update tooling. No functionality or logic has been altered
Changes:
eslint
from 7.10.0 to 8.46.0prettier
from 2.1.2 to 3.0.1eslint --fix
andsass-lint
to auto fix new warningsjsxBracketSameLine
in favor ofbracketSameLine
optionparser
configuration asprettier
is able to autodetectjsxSingleQuote
,semi
andprintWith
Issues Resolved
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.