code-style: eslint rules & beautify comments

This commit is contained in:
Chika 2022-05-10 10:47:10 +03:00
parent 3a52ce3647
commit b5c0ecd8bd
2 changed files with 5 additions and 8 deletions

View File

@ -39,8 +39,7 @@ export default class OptionsStore {
this.#options = initialOptions;
};
/** OPTIONS */
/** **************** OPTIONS **************** */
getOption(elementName: Elements) {
const value = this.root.$calculation.$values.getValueByElement(elementName);
return this.#options[elementName]?.find((x) => x.value === value);
@ -76,10 +75,7 @@ export default class OptionsStore {
this.root.$calculation.$values.clearValueOfElement(elementName);
}
/** */
/** FILTERS */
/** **************** FILTERS **************** */
getFilter(elementName: Elements) {
return this.#filters[elementName];
}
@ -111,6 +107,4 @@ export default class OptionsStore {
this.root.$calculation.$values.setValueOfElement(elementName, filteredOptons[0].value);
}
}
/** */
}

View File

@ -1,3 +1,6 @@
/* eslint-disable object-curly-newline */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable no-underscore-dangle */
import { createContext } from 'react';
import RootStore from './root';