diff --git a/.eslintrc.json b/.eslintrc.json index dabc669f2..4cd2f8290 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,8 +20,8 @@ "@typescript-eslint", "@typescript-eslint/tslint", "sonarjs", - "jest" - // "prettier" uncomment when prettier is upgraded to the newest version + "jest", + "prettier" ], "settings": { "next": { @@ -39,7 +39,7 @@ }, "root": true, "rules": { - // "prettier/prettier": "error" uncomment when prettier is upgraded to the newest version + "prettier/prettier": "error", "jest/expect-expect": [ "error", { diff --git a/library/src/components/Bindings.tsx b/library/src/components/Bindings.tsx index 7b77e7c88..f40deb37f 100644 --- a/library/src/components/Bindings.tsx +++ b/library/src/components/Bindings.tsx @@ -17,7 +17,7 @@ export const Bindings: React.FunctionComponent = ({ return null; } - const renderedBindings = bindings.all().map(binding => { + const renderedBindings = bindings.all().map((binding) => { const bindingValue = binding.value(); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const schema = SchemaHelpers.jsonToSchema(bindingValue); diff --git a/library/src/components/Schema.tsx b/library/src/components/Schema.tsx index 328d6cd27..2f632085c 100644 --- a/library/src/components/Schema.tsx +++ b/library/src/components/Schema.tsx @@ -98,14 +98,14 @@ export const Schema: React.FunctionComponent = ({ {isExpandable && !isCircular && !isArray ? ( <> setExpanded(prev => !prev)} + onClick={() => setExpanded((prev) => !prev)} expanded={expanded} > {renderedSchemaName}