From 9da986757811ec3f6f92c77058a724fa7bf225aa Mon Sep 17 00:00:00 2001 From: Antonette Caldwell Date: Mon, 25 Sep 2023 10:27:35 -0500 Subject: [PATCH] fix: Change prettier to error, and added eol to be LF Signed-off-by: Antonette Caldwell --- ui/.eslintrc.js | 4 ++-- ui/.prettierrc.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/.eslintrc.js b/ui/.eslintrc.js index fcf23b26ac2..66cf9e17aa1 100644 --- a/ui/.eslintrc.js +++ b/ui/.eslintrc.js @@ -16,7 +16,7 @@ module.exports = { 'plugin:cypress/recommended', 'next', 'plugin:prettier/recommended', -], + ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', @@ -55,6 +55,6 @@ module.exports = { }, ], 'react/prop-types': 'off', - 'prettier/prettier': 'warn', + 'prettier/prettier': ['error', { endOfLine: 'lf' }], }, }; diff --git a/ui/.prettierrc.yml b/ui/.prettierrc.yml index 1b6b2d6f698..d75e5e04e23 100644 --- a/ui/.prettierrc.yml +++ b/ui/.prettierrc.yml @@ -10,3 +10,4 @@ tabWidth: 2 trailingComma: all printWidth: 100 useTabs: false +endOfLine: 'lf'