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

Global (user) configuration #261

Open
1oglop1 opened this issue Oct 3, 2024 · 0 comments
Open

Global (user) configuration #261

1oglop1 opened this issue Oct 3, 2024 · 0 comments

Comments

@1oglop1
Copy link

1oglop1 commented Oct 3, 2024

Hi, I am working on a contribution to the renovate and they use ls-lint with a git commit hook.
I read the docs and I could not find anything mentioning this.

The problem is that at the moment ls-lint is preventing me from making a commit because it scans the directory I have in global gitignore. It is a common directory I use in projects for temporary stuff called ._ to make it short and easy to find.

Is there a way to configure ls-lint globally so that it can merge with the in-project config and prevent unnecessary changes in the project while allowing the developer to use their environment effectively?

Quite of the solution is to look for files in user's home directory first

On macOS/Linux: ~/.eslintrc.json
On Windows: %USERPROFILE%\.eslintrc.json

Thank you

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

No branches or pull requests

1 participant