prettier: use config from docs
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4f202295ce74399f4c31438889c18493177c8ead
diff --git a/.prettierrc.yaml b/.prettierrc.yaml
index f07fbdd..a69b879 100644
--- a/.prettierrc.yaml
+++ b/.prettierrc.yaml
@@ -1,3 +1,7 @@
-tabWidth: 2
+tabWidth: 4
+printWidth: 80
+proseWrap: "always"
overrides:
- - { "files": "*.yaml", "options": { "tabWidth": 4 } }
+ - files: "*.md"
+ options:
+ tabWidth: 2
diff --git a/virtual_sensor_config.json b/virtual_sensor_config.json
index 2f9e934..050338b 100644
--- a/virtual_sensor_config.json
+++ b/virtual_sensor_config.json
@@ -1,48 +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"
- }
+ {
+ "Desc": {
+ "Name": "Virtual_Inlet_Temp",
+ "SensorType": "temperature",
+ "MaxValue": 127.0,
+ "MinValue": -128.0
},
- {
- "ParamName": "P3",
- "Desc": {
- "Name": "MB_FAN0_TACH",
- "SensorType": "fan_tach"
- }
- }
- ]
- },
- "Expression": "P1 * (P2 + 5 - P3 * 0.01)"
- }
+ "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)"
+ }
]