chore: Configueer formatting

Prettier en .editorconfig
This commit is contained in:
Tibo De Peuter 2025-02-20 13:24:37 +01:00
parent 2f280d3fb2
commit 977b49f659
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
4 changed files with 34 additions and 14 deletions

View file

@ -1,9 +0,0 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
max_line_length = 100

View file

@ -1,7 +0,0 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"printWidth": 100
}

View file

@ -0,0 +1,11 @@
/**
* @type {import("prettier").Options}
*/
const rootConfig = import ('../prettier.config.js');
export default {
...rootConfig,
vueIndentScriptAndStyle: true,
singleAttributePerLine: true
};