mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-18 13:26:26 +00:00
Add prettierrc for editor compatibility
The tsserver lsp doesn't seem to work well with .editorconfig. Using prettierrc will allow formatting to work correctly with editor plugins This also updates editorconfig to work well with json Change-type: patch
This commit is contained in:
parent
d32987ab1f
commit
e2f54e29fa
@ -11,5 +11,6 @@ insert_final_newline = true
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.json]
|
||||
[*.{json,yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
5
.prettierrc.js
Normal file
5
.prettierrc.js
Normal file
@ -0,0 +1,5 @@
|
||||
const fs = require('fs');
|
||||
|
||||
module.exports = JSON.parse(
|
||||
fs.readFileSync('./node_modules/@balena/lint/config/.prettierrc', 'utf8'),
|
||||
);
|
Loading…
Reference in New Issue
Block a user