refactor(eslint)!: Prepare eslint for rollup 3 and upgrade eslint to newest version #1309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rollup Plugin Name: plugin-eslint
This PR contains:
bugfix
feature
refactor
documentation
Are tests included?
yes (bugfixes and features will not be merged without tests)
Breaking Changes?
yes (breaking changes will not be merged unless absolutely necessary)
List any relevant issue numbers:
#1233
#1231
#1128
#1010
Description
Prior to these changes, the eslint plugin was using an older
version of eslint that relied on a class called CLIEngine.
In newer versions this has now been deprecated and so upgrading
versions required also updating to using ESLint internally
instead. Ultimately this doesn't change the usage of the plugin
but some of the option names have changed for ESLint (notably
configFile needs to change to overrideConfigFile).
The main driving factor for this change is to prevent conflicts
that happen when using @rollup/plugin-typescript and this plugin
together. Without this update, eslint would run on the transpiled
code and so the error messages weren't as helpful. This update
will allow the two plugins to work well together and provide
helpful information about errors and warnings.
This work is also preparing eslint for the move to rollup 3 through
various package version updates.
BREAKING CHANGES:
This work is also based on this abandoned pr: #663
*This is a duplicate PR after the other was closed due to the target branch being closed: #1236
@lukastaegert