eslint-config: fix unicorn/numeric-separators-style rule
This commit is contained in:
parent
49d2dfc84d
commit
b61bca1947
@ -49,7 +49,7 @@ export const columns: ColumnsType<Insurance.RowValues> = [
|
||||
min={0}
|
||||
parser={parser}
|
||||
precision={2}
|
||||
step={1_000}
|
||||
step={1000}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
||||
@ -13,7 +13,7 @@ export function useInsuranceValue(key, valueName) {
|
||||
|
||||
const [value, setValue] = useState(storeValue);
|
||||
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 });
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 });
|
||||
|
||||
useEffect(() => {
|
||||
if (storeValue !== value) {
|
||||
|
||||
@ -6,7 +6,7 @@ export function usePaymentValue(index) {
|
||||
const [storeValue, setStoreValue] = useRowValue(index);
|
||||
const [value, setValue] = useState(storeValue);
|
||||
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 });
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 });
|
||||
|
||||
useEffect(() => {
|
||||
if (storeValue !== value) {
|
||||
|
||||
@ -6,7 +6,7 @@ export function useStoreValue(valueName) {
|
||||
const [storeValue, setStoreValue] = useValue(valueName);
|
||||
const [value, setValue] = useState(storeValue);
|
||||
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 });
|
||||
const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 });
|
||||
|
||||
useEffect(() => {
|
||||
if (storeValue !== value) {
|
||||
|
||||
@ -199,7 +199,7 @@ const props: Partial<ElementsProps> = {
|
||||
},
|
||||
tbxEngineVolume: {
|
||||
min: 0,
|
||||
max: 99.999_9,
|
||||
max: 99.9999,
|
||||
step: 0.5,
|
||||
precision: 4,
|
||||
parser,
|
||||
@ -356,7 +356,7 @@ const props: Partial<ElementsProps> = {
|
||||
tbxIRR_Perc: {
|
||||
min: 0,
|
||||
max: 500,
|
||||
step: 0.000_1,
|
||||
step: 0.0001,
|
||||
precision: 6,
|
||||
parser,
|
||||
formatter: formatterExtra,
|
||||
|
||||
@ -71,7 +71,7 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
'unicorn/numeric-separators-style': [
|
||||
'off',
|
||||
'warn',
|
||||
{
|
||||
onlyIfContainsSeparator: false,
|
||||
hexadecimal: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user