I have a ComponentA and have a requirement to put value to 0.00 by default. However, the prettier eslint will convert it from 0.00 to 0.0 when formatting this component file. How do we prevent this?
export const ComponentA = ({ validate, isRequired }) => (
<ComponentB
validate={validate}
required={isRequired}
value={0.00}
/>
);
Below are settings in .eslintrc file
"plugins": ["react", "react-hooks", "prettier", "jsx-a11y", "import"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended"
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],