-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: 'basePath' should be an absolute path. #208
Comments
I'm getting the same issue. It's a stopgap solution, but adding Example:
|
@JonDum |
+1 |
Any updates to this? Facing same issue currently |
@JonDum solution works for me, I've eslint 6.8.0 |
…ute paths As of the 6.7.0 release of eslint, absolute paths are required when eslint is searching for ignore patterns (eslint/eslint@ca3b2a6). This causes prettier-eslint-cli to fail if called with a glob pattern using relative paths. This commit passes the file path through the `path.resolve` method to ensure they are always absolute paths. Addresses issues prettier#205 & prettier#208
…ute paths As of the 6.7.0 release of eslint, absolute paths are required when eslint is searching for ignore patterns (eslint/eslint@ca3b2a6). This causes prettier-eslint-cli to fail if called with a glob pattern using relative paths. This commit passes the file path through the `path.resolve` method to ensure they are always absolute paths. Addresses issues prettier#205 & prettier#208
Still having the issue. |
I opened a pull request that should resolve this, #259. Haven't seen any response on it yet, but feel free to try the branch. |
The following solution works for me on Windows with Either use
and you can execute it as usual using |
…ute paths (#259) As of the 6.7.0 release of eslint, absolute paths are required when eslint is searching for ignore patterns (eslint/eslint@ca3b2a6). This causes prettier-eslint-cli to fail if called with a glob pattern using relative paths. This commit passes the file path through the `path.resolve` method to ensure they are always absolute paths. Addresses issues #205 & #208
Stale issue |
Hey, shut up you. I haven't gotten to it yet. |
https://antfu.me/posts/why-reproductions-are-required Feel free to create a new issue with minimal but runnable reproduction. |
FWIW: #259 was merged so this issue should be resolved. |
Command:
$ prettier-eslint 'src/**/*.{ts,tsx}' --write
Executing this command throws an exception!
but when I use the full path, Like this:
$ prettier-eslint '/Users/cuijianwei/WebstormProjects/testproject/hasaki-cli-demo/gen-demo/src/**/*.{ts,tsx}' --write
no error is reported, but I want to support relative paths
When I use version 6.6.0 of eslint,also no error is reported;
Now I have to reduce the eslint version to solve this problem
Version:
prettier-eslint-cli
version:4.7.1prettier
version: 1.19.1eslint
version:6.7.1Target:
What you did:
$ prettier-eslint 'src/**/*.{ts,tsx}' --write
What happened:
Error Log:
The text was updated successfully, but these errors were encountered: