Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.17 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.17 KB

Shareable Prettier config for Angular projects

Quick start

$ npm install @angular-ru/prettier-config -D

Add to your package.json:

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

or .prettierrc.js:

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

.editorconfig

We recommend using these settings.

# Editor configuration, see http://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