From b5c0ecd8bd7b97b0d0901417b573779ce019214e Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 10 May 2022 10:47:10 +0300 Subject: [PATCH] code-style: eslint rules & beautify comments --- stores/calculation/options/index.ts | 10 ++-------- stores/index.js | 3 +++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/stores/calculation/options/index.ts b/stores/calculation/options/index.ts index 9303c90..be9aeaf 100644 --- a/stores/calculation/options/index.ts +++ b/stores/calculation/options/index.ts @@ -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); } } - - /** */ } diff --git a/stores/index.js b/stores/index.js index 46f5643..870e480 100644 --- a/stores/index.js +++ b/stores/index.js @@ -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';