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:
6
client/plugins/pinia-history.js
vendored
6
client/plugins/pinia-history.js
vendored
@@ -12,12 +12,10 @@ function mergeOptions(options) {
|
||||
max: 30,
|
||||
persistent: false,
|
||||
persistentStrategy: {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
get: function (store, type) {
|
||||
get: function (_store, _type) {
|
||||
// Todo
|
||||
},
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
set: function (store, type, value) {
|
||||
set: function (_store, _type, _value) {
|
||||
// Todo
|
||||
},
|
||||
remove: function (store, type) {
|
||||
|
||||
Reference in New Issue
Block a user