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

Javascript files reformatted with Prettier and Prettier settings created for each module #4706

Merged
merged 13 commits into from Jul 13, 2020

Conversation

cotur
Copy link
Contributor

@cotur cotur commented Jul 9, 2020

Resolves: #4318

General Prettier Settings

We use follow settings for abp modules. This .prettierrc file is located for all published modules.

{
    "singleQuote": true,
    "useTabs": false,
    "tabWidth": 4
}

How to use prettier?

You need to setup the prettier for your IDE.

VS Code

Search "Prettier - Code formatter" at the extensions and download it.

You can set true Format on save settings at the File > Preferences > Settings : search "Format on Save"

Visual Studio

Open Extensions > Manage Extensions then type "JavaScript Prettier" and install it.

After downloading, restart your IDE.

You can set true Format on save settings at the Tools > Options > Prettier > General : Format On Save

Rider

You can follow this documentation for more information.

Also check this documentation for Format on save.

@cotur cotur added this to the 3.1 milestone Jul 9, 2020
@cotur cotur requested a review from hikalkan July 9, 2020 15:23
@maliming
Copy link
Member

It looks very good. 👍 Can you configure it for template projects?

@cotur cotur marked this pull request as draft July 13, 2020 09:10
@cotur cotur marked this pull request as ready for review July 13, 2020 09:31
@hikalkan hikalkan merged commit 028eb3b into dev Jul 13, 2020
@hikalkan hikalkan deleted the Cotur/prettier branch July 13, 2020 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Prettier for the solutions
3 participants