Skip to content

Commit

Permalink
deps: install prettier
Browse files Browse the repository at this point in the history
This helps in later CLs to ensure that .ts, .js and .json files are
consistently formatted.

Format package.json ahead of later code-generation from CUE in order to
minimise diffs.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: Id646ae47a6939dffc3fad2ea9880fbe9ac5a6109
Reviewed-on: https://review.gerrithub.io/c/cue-lang/vscode-cue/+/1204405
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
myitcv committed Nov 22, 2024
1 parent d583595 commit d458502
Show file tree
Hide file tree
Showing 4 changed files with 2,798 additions and 2,743 deletions.
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('.prettierrc.json')
}
34 changes: 34 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"tabWidth": 1,
"overrides": [
{
"files": "*.ts",
"options": {
"useTabs": true,
"arrowParens": "always",
"printWidth": 120,
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "none"
}
},
{
"files": "*.js",
"options": {
"useTabs": true,
"arrowParens": "always",
"printWidth": 120,
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "none"
}
},
{
"files": "*.json",
"options": {
"useTabs": false,
"tabWidth": 2
}
}
]
}
Loading

0 comments on commit d458502

Please sign in to comment.