Skip to content
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

[Bug] --fix always adds a '/' to the start of the path #18

Closed
maxoosterveen opened this issue Nov 22, 2022 · 3 comments · Fixed by #19
Closed

[Bug] --fix always adds a '/' to the start of the path #18

maxoosterveen opened this issue Nov 22, 2022 · 3 comments · Fixed by #19

Comments

@maxoosterveen
Copy link

In version 1.5 the --fix option will always add a '/' to the start of the path even when you don't add a prefix

instead of fixing ../componentFolder/componentName to Components/componentFolder/componentName it will change the path to /Components/componentFolder/componentName with the following config:

rules: {
        "no-relative-import-paths/no-relative-import-paths": [
            2,
            { "allowSameFolder": true, "rootDir": "src" }
        ]
    },

It still works fine on 1.4 with the same config

@MasonChinkin
Copy link

+1 I've been using --fix a few times in the last week and this just started. Thanks for all your work on this plugin ❤️

@tdymel
Copy link

tdymel commented Dec 5, 2022

+1! Love the plugin would love to see a fix :)

@damassi
Copy link

damassi commented Dec 16, 2022

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants