diff --git a/.editorconfig b/.editorconfig index e5e75cdb..91112c8e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,6 @@ insert_final_newline = true [*.md] trim_trailing_whitespace = false -[*.json] +[*.{json,yml}] indent_style = space +indent_size = 2 diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..28b22d53 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,5 @@ +const fs = require('fs'); + +module.exports = JSON.parse( + fs.readFileSync('./node_modules/@balena/lint/config/.prettierrc', 'utf8'), +);