Enhance ESLint Configuration and Improve Code Consistency

- Updated ESLint configuration in `.eslintrc.cjs` to enforce error handling for unused variables, allowing for better code quality and maintainability.
- Added `clone-deep` import in `OpenForm.vue` to facilitate deep cloning of objects, enhancing functionality.
- Refactored variable destructuring in `ColumnCondition.vue` and `useAlert.js` to improve readability by using underscore for ignored parameters.
- Modified `pinia-history.js` to use underscore for unused parameters in the `get` and `set` functions, aligning with the new ESLint rules.

These changes aim to improve code quality, maintainability, and consistency across the codebase.
This commit is contained in:
Julien Nahum
2025-03-27 11:07:39 +01:00
parent 0d9c658638
commit 3dd3147b19
5 changed files with 8 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ export default {
},
operators() {
return Object.entries(this.available_filters[this.property.type].comparators)
.filter(([filterKey, value]) => this.customValidation || (!this.customValidation && !value.custom_validation_only))
.filter(([_, value]) => this.customValidation || (!this.customValidation && !value.custom_validation_only))
.map(([filterKey]) => {
return {
value: filterKey,