diff --git a/.eslintrc.js b/.eslintrc.js index dabf8ae7..40e9ff14 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,22 +15,8 @@ module.exports = { 'vue/setup-compiler-macros': true }, - extends: [ - // Base ESLint recommended rules - // 'eslint:recommended', - - // Uncomment any of the lines below to choose desired strictness, - // but leave only one uncommented! - // See https://eslint.vuejs.org/rules/#available-rules - 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) - // 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) - // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) - - 'standard' - ], - + extends: ['standard'], plugins: ['vue', 'prettier'], - globals: { ga: 'readonly', // Google Analytics cordova: 'readonly', @@ -70,13 +56,30 @@ module.exports = { }, overrides: [ { - extends: ['plugin:vue/vue3-essential'], - files: ['src/**/*.{js,vue,scss}'], // Aplica ESLint solo a archivos .js, .vue y .scss dentro de src (Proyecto de quasar) + files: ['src/**/*.{js,vue,scss}', 'quasar.config.js'], // Aplica ESLint solo a archivos .js, .vue y .scss dentro de src (Proyecto de quasar) + extends: [ + // Base ESLint recommended rules + 'eslint:recommended', + // Uncomment any of the lines below to choose desired strictness, + // but leave only one uncommented! + // See https://eslint.vuejs.org/rules/#available-rules + // 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) + 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) + // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) + // https://github.com/prettier/eslint-config-prettier#installation + // usage with Prettier, provided by 'eslint-config-prettier'. + 'prettier' + ], rules: { semi: 'off', - indent: ['error', 4, { SwitchCase: 1 }], - 'space-before-function-paren': 'off' - } + 'space-before-function-paren': 'off', + 'prefer-promise-reject-errors': 'off', + 'vue/no-multiple-template-root': 'off' + }, + parserOptions: { + ecmaVersion: '2021' + }, + plugins: ['vue'] } ] }; diff --git a/.vscode/settings.json b/.vscode/settings.json index 484a898f..b194dfb7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,9 @@ { - "files.eol": "\n", - "eslint.autoFixOnSave": true, "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": true, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": ["source.fixAll.eslint"], - "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"] + "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], + "cSpell.words": ["axios", "composables"] } diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 7ba3c726..bfd499f5 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -27,10 +27,10 @@ onMounted(() => { const styleAttrs = computed(() => { return props.isOutlined ? { - dense: true, - outlined: true, - rounded: true - } + dense: true, + outlined: true, + rounded: true + } : {}; }); diff --git a/src/pages/Admin/NewsDetails.vue b/src/pages/Admin/NewsDetails.vue index 8846da6b..a7813652 100644 --- a/src/pages/Admin/NewsDetails.vue +++ b/src/pages/Admin/NewsDetails.vue @@ -24,11 +24,11 @@ const isEditMode = !!route.params.id; const formData = ref( !route.params.id ? { - title: '', - tag: '', - priority: '', - text: '' - } + title: '', + tag: '', + priority: '', + text: '' + } : undefined ); @@ -73,18 +73,18 @@ onMounted(async () => {