Skip to content

Commit

Permalink
chore: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Sep 9, 2019
1 parent fad7445 commit a20b5f3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
root = true

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

[*.{js,ts,tsx}]
indent_style = space
indent_size = 4
max_line_length = 100
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"arrowParens": "always",
"endOfLine": "lf",
"parser": "typescript",
"printWidth": 100,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"lerna": "3.5.1",
"mocha": "5.2.0",
"nyc": "13.1.0",
"prettier": "^1.18.2",
"pretty-bytes": "5.2.0",
"react": "16.8.4",
"react-dom": "16.8.4",
Expand Down

0 comments on commit a20b5f3

Please sign in to comment.