There was trouble creating the ESLint CLIEngine. -
'basePath' should be an absolute path
尝试使用 eslint
$ npx prettier-eslint **/*.js
但得到:
prettier-eslint [ERROR]: There was trouble creating the ESLint CLIEngine.
prettier-eslint-cli [ERROR]: There was an error formatting "test/fizzBuzz.test.js":
AssertionError [ERR_ASSERTION]: 'basePath' should be an absolute path.