diff --git a/.eslintrc.js b/.eslintrc.js index 57c51881..7bace3b2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -105,6 +105,7 @@ module.exports = { } }], "vue/multi-word-component-names": "off", + "require-jsdoc": "off", "valid-jsdoc": 0 } }; diff --git a/domain/konsol-vergisi-hesaplayici/calculator.js b/domain/konsol-vergisi-hesaplayici/calculator.js index 734f686e..192abed2 100644 --- a/domain/konsol-vergisi-hesaplayici/calculator.js +++ b/domain/konsol-vergisi-hesaplayici/calculator.js @@ -58,7 +58,6 @@ class Calculator { } /** - * @private * @param {number} price */ #doCalculation(price) { @@ -66,7 +65,6 @@ class Calculator { } /** - * @private * @param {{[key: string]: number|null}} taxFees * @returns {number} */ @@ -83,32 +81,22 @@ class Calculator { return this.#calculateFromTaxAddedPrice ? calculateTaxFromTaxAddedPrice(price, rate) : calculateTaxFromTaxFreePrice(price, rate); } - /** - * @private - */ #_customTax() { this.#taxFees.customTax = this.#calculateTax(this.#price, this.#taxRates.customTax); this.#doCalculation(this.#taxFees.customTax); } - /** - * @private - */ #_specialConsumptionTax() { this.#taxFees.specialConsumptionTax = this.#calculateTax(this.#price, this.#taxRates.specialConsumptionTax); this.#doCalculation(this.#taxFees.specialConsumptionTax); } - /** - * @private - */ #_valueAddedTax() { this.#taxFees.valueAddedTax = this.#calculateTax(this.#price, this.#taxRates.valueAddedTax); this.#doCalculation(this.#taxFees.valueAddedTax); } /** - * @public * @returns {{[key: string]: {[key: string]: number|null}}} */ calculate() { diff --git a/domain/telefon-vergisi-hesaplayici/calculator.js b/domain/telefon-vergisi-hesaplayici/calculator.js index b1ca194f..7be54543 100644 --- a/domain/telefon-vergisi-hesaplayici/calculator.js +++ b/domain/telefon-vergisi-hesaplayici/calculator.js @@ -94,7 +94,6 @@ class Calculator { } /** - * @private * @param {number} price */ #doCalculation(price) { @@ -102,7 +101,6 @@ class Calculator { } /** - * @private * @param {{[key: string]: number|null}} taxFees * @returns {number} */ @@ -124,56 +122,37 @@ class Calculator { return this.#calculateFromTaxAddedPrice ? calculateTaxFromTaxAddedPrice(price, rate) : calculateTaxFromTaxFreePrice(price, rate); } - /** - * @private - */ #_ministryOfCulture() { this.#taxFees.ministryOfCulture = this.#calculateTax(this.#price, this.#taxRates.ministryOfCulture); this.#doCalculation(this.#taxFees.ministryOfCulture); } - /** - * @private - */ #_trtImport() { this.#taxFees.trtImport = this.#calculateTax(this.#price, this.#taxRates.trtImport); this.#doCalculation(this.#taxFees.trtImport); } - /** - * @private - */ #_specialConsumptionTax() { this.#taxRates.specialConsumptionTax = getSpecialConsumptionTaxRateByPrice(this.#price); this.#taxFees.specialConsumptionTax = this.#calculateTax(this.#price, this.#taxRates.specialConsumptionTax); this.#doCalculation(this.#taxFees.specialConsumptionTax); } - /** - * @private - */ #_valueAddedTax() { this.#taxFees.valueAddedTax = this.#calculateTax(this.#price, this.#taxRates.valueAddedTax); this.#doCalculation(this.#taxFees.valueAddedTax); } - /** - * @private - */ #_trtPassport() { this.#taxFees.trtPassport = this.#taxRates.trtPassport * this.#eurToTryCurrency; this.#doCalculation(this.#taxFees.trtPassport); } - /** - * @private - */ #_registration() { this.#doCalculation(this.#taxFees.registration); } /** - * @public * @returns {{[key: string]: {[key: string]: number|null}}} */ calculate() {