markdownlint, prettier: enable formatting

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I3f1eb4fd602cf9f6403836e554ad6d6f6e76f9db
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..4a4080a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,6 @@
+[*]
+indent_style = space
+indent_size = 4
+# Config for shfmt
+switch_case_indent = true
+space_redirects = true
diff --git a/.markdownlint.yaml b/.markdownlint.yaml
new file mode 100644
index 0000000..f5cfbee
--- /dev/null
+++ b/.markdownlint.yaml
@@ -0,0 +1,5 @@
+default: true
+MD024:
+    siblings_only: true
+MD013:
+    stern: true
diff --git a/.prettierrc.yaml b/.prettierrc.yaml
new file mode 100644
index 0000000..f07fbdd
--- /dev/null
+++ b/.prettierrc.yaml
@@ -0,0 +1,3 @@
+tabWidth: 2
+overrides:
+    - { "files": "*.yaml", "options": { "tabWidth": 4 } }
diff --git a/virtual_sensor_config.json b/virtual_sensor_config.json
index f0d50ef..2f9e934 100644
--- a/virtual_sensor_config.json
+++ b/virtual_sensor_config.json
@@ -1,56 +1,48 @@
 [
-	{
-		"Desc" :
-		{
-			"Name" : "Virtual_Inlet_Temp",
-			"SensorType" : "temperature",
-			"MaxValue": 127.0,
-			"MinValue": -128.0
-		},
-		"Threshold" :
-		{
-			"CriticalHigh": 90,
-			"CriticalLow": 20,
-			"WarningHigh": 70,
-			"WarningLow": 30
-		},
-		"Associations":
-		[
-			[
-				"chassis",
-				"all_sensors",
-				"/xyz/openbmc_project/inventory/system/board/my_board"
-			]
-		],
-		"Params":
-		{
-			"ConstParam" :
-			[
-				{
-					"ParamName" : "P1",
-					"Value" : 1.1
-				}
-			],
-			"DbusParam" :
-			[
-				{
-					"ParamName" : "P2",
-					"Desc" :
-					{
-						"Name" : "MB_INLET_TEMP",
-						"SensorType" : "temperature"
-					}
-				},
-				{
-					"ParamName" : "P3",
-					"Desc" :
-					{
-						"Name" : "MB_FAN0_TACH",
-						"SensorType" : "fan_tach"
-					}
-				}
-			]
-		},
-		"Expression" : "P1 * (P2 + 5 - P3 * 0.01)"
-	}
+  {
+    "Desc": {
+      "Name": "Virtual_Inlet_Temp",
+      "SensorType": "temperature",
+      "MaxValue": 127.0,
+      "MinValue": -128.0
+    },
+    "Threshold": {
+      "CriticalHigh": 90,
+      "CriticalLow": 20,
+      "WarningHigh": 70,
+      "WarningLow": 30
+    },
+    "Associations": [
+      [
+        "chassis",
+        "all_sensors",
+        "/xyz/openbmc_project/inventory/system/board/my_board"
+      ]
+    ],
+    "Params": {
+      "ConstParam": [
+        {
+          "ParamName": "P1",
+          "Value": 1.1
+        }
+      ],
+      "DbusParam": [
+        {
+          "ParamName": "P2",
+          "Desc": {
+            "Name": "MB_INLET_TEMP",
+            "SensorType": "temperature"
+          }
+        },
+        {
+          "ParamName": "P3",
+          "Desc": {
+            "Name": "MB_FAN0_TACH",
+            "SensorType": "fan_tach"
+          }
+        }
+      ]
+    },
+    "Expression": "P1 * (P2 + 5 - P3 * 0.01)"
+  }
 ]