code-style: eslint rules & beautify comments
This commit is contained in:
parent
3a52ce3647
commit
b5c0ecd8bd
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/** */
|
||||
}
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user