Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 908 Bytes

README.md

File metadata and controls

48 lines (37 loc) · 908 Bytes

Shareable Prettier config for Angular projects

image image

Quick start

$ npm install @angular-ru/prettier -D

Add to your package.json:

{
    "name": "my-app-project",
    "version": "9000.0.1",
    "prettier": "@angular-ru/prettier"
}

or .prettierrc.js:

module.exports = {
    ...require('@angular-ru/prettier'),
    // override
    semi: false
};

.editorconfig

We recommend using these settings.

# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_size = 4
end_of_line = lf
indent_style = space
max_line_length = 120
insert_final_newline = true
trim_trailing_whitespace = true