Support both flat and legacy ESLint configuration styles 🥙 #19
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.
Details
What have you changed?
--eslint-use-legacy-config
..eslintrc
config file (in addition to theeslint.config.js
file).yarn lint
in thetest.yml
GitHub action.Why are you making these changes?
--eslint-use-legacy-config
can be enabled to use the legacy configuration style..eslintrc
file can be used to test the legacy config, whereaseslint.config.js
is used for the flat config style..ts
files are ignored as Lint Pilot does not support TypeScript.Why support flat and legacy config?
Although Lint Pilot is new - so only supporting flat config might be expected - it could be used to replace existing Lint programs which may need to continue supporting legacy config.
For example, some companies may have their own Lint programs which they would need to upgrade to support flat config, and part of that process may be to migrate to Lint Pilot which supports both. This would allow teams to migrate to flat config in their own time and the company wouldn't need to invest time in supporting a complex linting program.