Modulo Administración #78
43
.eslintrc.js
43
.eslintrc.js
|
@ -15,22 +15,8 @@ module.exports = {
|
||||||
'vue/setup-compiler-macros': true
|
'vue/setup-compiler-macros': true
|
||||||
},
|
},
|
||||||
|
|
||||||
extends: [
|
extends: ['standard'],
|
||||||
// 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'
|
|
||||||
],
|
|
||||||
|
|
||||||
plugins: ['vue', 'prettier'],
|
plugins: ['vue', 'prettier'],
|
||||||
|
|
||||||
globals: {
|
globals: {
|
||||||
ga: 'readonly', // Google Analytics
|
ga: 'readonly', // Google Analytics
|
||||||
cordova: 'readonly',
|
cordova: 'readonly',
|
||||||
|
@ -70,13 +56,30 @@ module.exports = {
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
extends: ['plugin:vue/vue3-essential'],
|
files: ['src/**/*.{js,vue,scss}', 'quasar.config.js'], // Aplica ESLint solo a archivos .js, .vue y .scss dentro de src (Proyecto de quasar)
|
||||||
files: ['src/**/*.{js,vue,scss}'], // 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: {
|
rules: {
|
||||||
semi: 'off',
|
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']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
{
|
{
|
||||||
"files.eol": "\n",
|
|
||||||
"eslint.autoFixOnSave": true,
|
|
||||||
"editor.bracketPairColorization.enabled": true,
|
"editor.bracketPairColorization.enabled": true,
|
||||||
"editor.guides.bracketPairs": true,
|
"editor.guides.bracketPairs": true,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
|
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
|
||||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"]
|
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
||||||
|
"cSpell.words": ["axios", "composables"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,18 +73,18 @@ onMounted(async () => {
|
||||||
</Teleport>
|
</Teleport>
|
||||||
<VnForm
|
<VnForm
|
||||||
ref="vnFormRef"
|
ref="vnFormRef"
|
||||||
:fetchFormDataSql="fetchNewDataSql"
|
:fetch-form-data-sql="fetchNewDataSql"
|
||||||
:formInitialData="formData"
|
:form-initial-data="formData"
|
||||||
:createModelDefault="{
|
:create-model-default="{
|
||||||
field: 'userFk',
|
field: 'userFk',
|
||||||
value: 'account.myUser_getId()'
|
value: 'account.myUser_getId()'
|
||||||
}"
|
}"
|
||||||
:pks="pks"
|
:pks="pks"
|
||||||
:isEditMode="isEditMode"
|
:is-edit-mode="isEditMode"
|
||||||
table="news"
|
table="news"
|
||||||
schema="hedera"
|
schema="hedera"
|
||||||
separationBetweenInputs="lg"
|
separation-between-inputs="lg"
|
||||||
@onDataSaved="goBack()"
|
@on-data-saved="goBack()"
|
||||||
>
|
>
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<VnImg
|
<VnImg
|
||||||
|
@ -96,7 +96,7 @@ onMounted(async () => {
|
||||||
:id="data.image"
|
:id="data.image"
|
||||||
rounded
|
rounded
|
||||||
editable
|
editable
|
||||||
editSchema="catalog"
|
edit-schema="catalog"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
v-model="data.title"
|
v-model="data.title"
|
||||||
|
|
Loading…
Reference in New Issue