format-code: enable prettier
prettier is a formatter for YAML, JSON, Markdown, etc.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7a47d02ef7382d811423b97a88132aa92b991eed
diff --git a/config/eslint-global-config.json b/config/eslint-global-config.json
index 4e3da2f..e5dd2bb 100644
--- a/config/eslint-global-config.json
+++ b/config/eslint-global-config.json
@@ -7,5 +7,5 @@
// We dont want to lint the json files in the suprojects, so
// ignoring the json files in the subprojects folder
- "ignorePatterns":["**/meson-*/*.json", "subprojects/**/*.json"]
+ "ignorePatterns": ["**/meson-*/*.json", "subprojects/**/*.json"]
}
diff --git a/config/prettierrc.yaml b/config/prettierrc.yaml
new file mode 100644
index 0000000..a69b879
--- /dev/null
+++ b/config/prettierrc.yaml
@@ -0,0 +1,7 @@
+tabWidth: 4
+printWidth: 80
+proseWrap: "always"
+overrides:
+ - files: "*.md"
+ options:
+ tabWidth: 2