so1ve/codestyle-config

Sweep: use 114514 spaces to indent

Closed this issue ยท 4 comments

so1ve commented
Sweep: use 114514 spaces to indent

Here's the PR! #82.

โšก Sweep Free Trial: I used GPT-4 to create this ticket. You have 3 GPT-4 tickets left. For more GPT-4 tickets, visit our payment portal.To get Sweep to recreate this ticket, leave a comment prefixed with "sweep:" or edit the issue.


Step 1: ๐Ÿ” Code Search

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.

https://github.com/so1ve/eslint-prettier-config/blob/9b5ebdf45ad0663776dd768d0018b61201dab33a/README.md#L1-L72

https://github.com/so1ve/eslint-prettier-config/blob/9b5ebdf45ad0663776dd768d0018b61201dab33a/packages/eslint-plugin-sort-imports/src/shared.js#L590-L865

https://github.com/so1ve/eslint-prettier-config/blob/9b5ebdf45ad0663776dd768d0018b61201dab33a/packages/eslint-config-basic/standard.js#L139-L318

https://github.com/so1ve/eslint-prettier-config/blob/9b5ebdf45ad0663776dd768d0018b61201dab33a/packages/eslint-plugin-sort-imports/src/shared.js#L691-L887

https://github.com/so1ve/eslint-prettier-config/blob/9b5ebdf45ad0663776dd768d0018b61201dab33a/packages/eslint-config-basic/standard.js#L36-L161


Step 2: ๐Ÿง Snippet Analysis

From looking through the relevant snippets, I decided to make the following modifications:

File Path Proposed Changes
packages/prettier-config/index.js Change the value of the tabWidth property to 114514. This property controls the number of spaces used for indentation.

Step 3: ๐Ÿ“ Planning

I have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request:

Change indentation to use 114514 spaces
sweep/change-indentation

Description

This PR modifies the Prettier configuration to change the indentation in the code to use 114514 spaces.

Summary of Changes

  • Updated the tabWidth property in the index.js file of the prettier-config package to set the indentation to 114514 spaces.

Please note that using such a large number of spaces for indentation is not a practical or standard coding practice. This change is made to address the specific request in the issue, but it is not recommended for actual code formatting.


Step 4: โŒจ๏ธ Coding

Here is my review for my PR:

Here is the 1th review

Hi there,

Thanks for your contribution. Here are a few changes that need to be made:

  • In the file packages/prettier-config/index.js on line 10, the tab width has been set to a very large number (114514). This might affect code readability. Please consider setting it to a more reasonable value.

Keep up the good work!

Here is the 2th review

Hi there,

Thanks for your contribution. I've reviewed the changes and here are a few suggestions:

  • In the file packages/prettier-config/index.js, the tabWidth has been set to 114514 on line 10. This is an unusually large number and might affect the readability of the code. Please consider setting it to a more standard value.

Keep up the good work!

Here is the 3th review

Hi there,

Thanks for your contribution. I've reviewed the changes and have a few suggestions:

  • In packages/prettier-config/index.js, the tabWidth has been set to 114514 on line 10. This is an unusually large number for tab width and might affect code readability. Please consider setting it to a more standard value.

Keep up the good work!


Step 5: ๐Ÿ” Code Review

Success! ๐Ÿš€


To recreate the pull request, leave a comment prefixed with "sweep:" or edit the issue.
Join Our Discord

so1ve commented

Sweep: you should edit prettier config instead.

so1ve commented

Sweep: you should edit prettier config instead. Revert current changes.

This issue has been locked since it has been closed for more than 14 days.

If you have found a concrete bug or regression related to it, please open a new issue. If you have any other comments you should create a new discussion.