fix(eslint app): prepere to eslint --fix

This commit is contained in:
vbuglov 2024-04-02 10:46:20 +03:00
parent 10114ff67e
commit 3b44337cb5
3 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ module.exports = {
"eslint:recommended", "eslint:recommended",
"plugin:vue/vue3-recommended", "plugin:vue/vue3-recommended",
], ],
"ignorePatterns": ["temp.js", "**/node_modules/*", "**/dist/*", "**/public/*", "**/build/*"],
rules: { rules: {
"no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}], "no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}],
"vue/component-tags-order": ["error", { "vue/component-tags-order": ["error", {

View File

@ -11,8 +11,8 @@
"preview": "vite preview", "preview": "vite preview",
"test": "vitest", "test": "vitest",
"test_ones": "vitest run", "test_ones": "vitest run",
"lint": "eslint --ext .js, **/*.vue", "lint": "eslint 'src/**/*.{js,vue}'",
"lint_fix": "eslint --ext .js, **/*.vue --fix" "lint_fix": "eslint 'src/**/*.{js,vue}' --fix"
}, },
"dependencies": { "dependencies": {
"0-tools-eslint": "../repo/0-tools-eslint/", "0-tools-eslint": "../repo/0-tools-eslint/",

View File

@ -9,14 +9,14 @@ class ServiceOfMachines {
return await this.adapter.getModalMachines() return await this.adapter.getModalMachines()
} }
async putModalMachines(machines) { async setModalMachines(machines) {
const result = await this.store.dispatch('machines/saveModalMachines', machines) const result = await this.store.dispatch('machines/saveModalMachines', machines)
return result return result
} }
async makeFetchAndPutModalMachines() { async makeFetchAndPutModalMachines() {
const machines = await this.fetchModalMachines() const machines = await this.fetchModalMachines()
await this.putModalMachines(machines) await this.setModalMachines(machines)
return machines return machines
} }
} }