Adapted the code in lib/eslint.js to work for the new asynchronous methods lintFiles and isPathIgnored, replacing the previous synchronous methods executeOnFiles and isPathIgnored.
Because of the previous change, eslint.run() is now asynchronous.
Adapted the code in the ESLint 6 patch to import the ConfigArray and ConfigArrayFactory from @eslint/eslintrc, which is where those classes live now.
Adapted integration tests to work with the new asynchronous flow.
Fixed some errors in system tests.
Added library chai-as-promised, useful for testing asynchronous flows in the app. (In this case, it's being used to test the eslint.run() method, given that it's asynchronous now.
Purpose
This PR adds support for ESLint 8. Most of the changes introduced in the ESLint 8 update can be seen here:
Description
8.8.0
.lib/eslint.js
to work for the new asynchronous methodslintFiles
andisPathIgnored
, replacing the previous synchronous methodsexecuteOnFiles
andisPathIgnored
.eslint.run()
is now asynchronous.@eslint/eslintrc
, which is where those classes live now.chai-as-promised
, useful for testing asynchronous flows in the app. (In this case, it's being used to test theeslint.run()
method, given that it's asynchronous now.Related issues
https://codeclimate.atlassian.net/browse/QUA-460