idahogurl / vs-code-prettier-eslint

A Visual Studio Code Extension to format JavaScript and TypeScript code using the prettier-eslint package.
MIT License
185 stars 46 forks source link

How do I set the eslintrc‘s path? #146

Closed xiaocaibird closed 1 year ago

xiaocaibird commented 1 year ago

We want to have only a few rules for formatting. Because the “--fix” of some rules can cause bugs.

idahogurl commented 1 year ago

@xiaocaibird You cannot set the path. The extension starts at the directory of the file being formatted and traverses up the parent directories until it finds the .eslintrc

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

jungwookim commented 1 year ago

Hi @idahogurl , I know that the config file is found by being traversed up but do you think that we may support other configurations to support https://github.com/prettier/prettier-eslint#options?

My needs come from my project with a lot of nested .eslintrc. I have root configs and configs for each projects. Sometimes, I want to configure another config which is not in a same directory.

idahogurl commented 1 year ago

@jungwookim I could support some of the options in https://github.com/prettier/prettier-eslint#options. I don't have time however to implement any enhancements currently. Feel free to create a PR similar to what I did to implement pretterLast https://github.com/idahogurl/vs-code-prettier-eslint/pull/150

jungwookim commented 1 year ago

@idahogurl Thanks. I'm going to make a PR later. No problem!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.