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

Format exceeds length #153

Closed unmatchedbest closed 1 year ago

unmatchedbest commented 1 year ago

hello,For the code with too long chain, the format will exceed the length. If you break the line, the format will be changed back into one line. I hope to improve it。

image image
idahogurl commented 1 year ago

@unmatchedbest Could I get a repository or a ZIP of the simple project reproducing the issue? You'll need to include all the configuration files (package.json, .eslintrc, .prettierrc, etc)

unmatchedbest commented 1 year ago

I created a simple project. Please see, this is the git address.

https://github.com/unmatchedbest/mypro.git

idahogurl commented 1 year ago

@unmatchedbest I'm not seeing your ESLint configuration file

unmatchedbest commented 1 year ago

Sorry, it was hidden when uploading, and then it was omitted. It has already been added.

idahogurl commented 1 year ago

@unmatchedbest I get a 404 when trying to install the package @tencent/eslint-config-tencent. I did find the package eslint-config-tencent and that worked.

unmatchedbest commented 1 year ago

Sorry, I'll just remove this package and solve the problem. Thank you.