Skip to content

Commit

Permalink
chore(format): add Prettier
Browse files Browse the repository at this point in the history
Co-authored-by: Louis-Maxime Piton <[email protected]>
  • Loading branch information
julien-deramond and louismaximepiton committed Apr 23, 2024
1 parent 79b042b commit c623d89
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Files to ignore
**/.angular
24 changes: 24 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"bracketSameLine": true,
"printWidth": 160,
"quoteProps": "consistent",
"semi": true,
"singleAttributePerLine": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"overrides": [
{
"files": ["*.css", "*.yml"],
"options": {
"singleQuote": false
}
},
{
"files": ["*.css", "*.html"],
"options": {
"printWidth": 500
}
}
]
}
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"build": "webpack",
"copyright-year": "node build/bump-copyright-year.mjs",
"netlify": "npm run build && cp -R dist docs/ && npm run typedoc",
"prettier:check": "prettier --check .",
"prettier:update": "prettier --write .",
"release": "npm pack && npm publish",
"serve": "npm run typedoc && serve .",
"serve:angular": "serve test/angular-ngx-echarts/dist/angular/",
Expand All @@ -26,6 +28,7 @@
},
"devDependencies": {
"echarts": "^5.5.0",
"prettier": "^3.2.5",
"serve": "^14.2.2",
"ts-loader": "^9.5.1",
"typedoc": "^0.25.13",
Expand Down

0 comments on commit c623d89

Please sign in to comment.