-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[7.17] Upgrade ESLint to v8 (#162309) #163792
base: 7.17
Are you sure you want to change the base?
Conversation
This reverts commit 2238fb6.
e4759ca
to
5843834
Compare
...require('eslint-config-prettier/react').rules, | ||
...require('eslint-config-prettier/@typescript-eslint').rules, |
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.
These two rule-sets are now included in the base rule-set, so no need to manually require them anymore
@@ -6,7 +6,7 @@ | |||
const semver = require('semver'); | |||
const { kibanaPackageJson: PKG } = require('@kbn/dev-utils'); | |||
|
|||
const eslintConfigPrettierTypescriptEslintRules = require('eslint-config-prettier/@typescript-eslint').rules; |
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 @typescript-eslint
rule-set is now included in the base rule-set
afa1179
to
909f8ae
Compare
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @watson |
This is a manual backport of "Upgrade ESLint to v8" (PR #162309). To avoid conflicts, this PR also backports the following 3 commits from
main
:Updated direct dependencies
@types/eslint
eslint
CHANGELOG.md
eslint-config-prettier
CHANGELOG.md
eslint-import-resolver-node
CHANGELOG.md
eslint-import-resolver-webpack
CHANGELOG.md
eslint-module-utils
CHANGELOG.md
eslint-plugin-ban
eslint-plugin-cypress
eslint-plugin-import
CHANGELOG.md
eslint-plugin-jsx-a11y
CHANGELOG.md
eslint-plugin-mocha
CHANGELOG.md
eslint-plugin-no-unsanitized
Note to reviewers
The vast majority of files touched by this PR is changes to the
import
order due to minor fixes in theimport/order
rule.In reality there are so many differences between
main
and7.17
, that the commit for "Upgrade ESLint to v8" couldn't easily be backported. It was quicker to copy over what made sense manually, and recreate the rest. The main changes are (besides the 3 commits above), in the following separate commits in this PR for easier reviewing: