chore: migrate to ESLint flat config #1673
Merged
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.
This PR migrates from the ESLint legacy
eslintrc
format to the new flat config format. Some additional changes were also required here:import
module was removed as an explicit import, since it was not configured any further, and its rules are already being applied as part of@appium/eslint-config-appium-ts
react-native
module was removed, as does not seem to be actively maintained and is unlikely to be updated for ESLint 9 compatibility (and also this codebase does not use React Native anyway)no-unused-vars
rule was removed and instead applied to the@typescript-eslint/no-unused-vars
rule (from@appium/eslint-config-appium-ts
), which extendsno-unused-vars
react/jsx-uses-vars
rule was removed, since the@typescript-eslint/no-unused-vars
rule seems to detect JSX variables just fine.eslintignore
is now integrated into the config file, the ignored file patterns have been changed to extend the.gitignore
file