eslint-config: fix unicorn/numeric-separators-style rule

This commit is contained in:
vchikalkin 2023-02-09 13:43:44 +03:00
parent 49d2dfc84d
commit b61bca1947
6 changed files with 7 additions and 7 deletions

View File

@ -49,7 +49,7 @@ export const columns: ColumnsType<Insurance.RowValues> = [
min={0}
parser={parser}
precision={2}
step={1_000}
step={1000}
/>
);
},

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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,

View File

@ -71,7 +71,7 @@ module.exports = {
},
],
'unicorn/numeric-separators-style': [
'off',
'warn',
{
onlyIfContainsSeparator: false,
hexadecimal: {