linting according to updated linter

This commit is contained in:
mahula 2024-03-10 22:49:46 +01:00
parent 77fc8c63a1
commit 73fac22148
4 changed files with 19 additions and 22 deletions

View File

@ -3,25 +3,17 @@ module.exports = {
env: { env: {
browser: true, browser: true,
node: true, node: true,
jest: true jest: true,
}, },
parserOptions: { parserOptions: {
parser: 'babel-eslint' parser: 'babel-eslint',
}, },
extends: [ extends: ['standard', 'plugin:vue/essential', 'plugin:prettier/recommended'],
'standard',
'plugin:vue/essential',
'plugin:prettier/recommended'
],
// required to lint *.vue files // required to lint *.vue files
plugins: [ plugins: ['vue', 'prettier', 'jest'],
'vue',
'prettier',
'jest'
],
// add your custom rules here // add your custom rules here
rules: { rules: {
//'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', // 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': ['error'], 'no-console': ['error'],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case'], 'vue/component-name-in-template-casing': ['error', 'kebab-case'],
@ -29,9 +21,12 @@ module.exports = {
'vue/multi-word-component-names': 0, 'vue/multi-word-component-names': 0,
'vue/no-mutating-props': 0, 'vue/no-mutating-props': 0,
'vue/no-v-text-v-html-on-component': 0, 'vue/no-v-text-v-html-on-component': 0,
'prettier/prettier': ['error', { 'prettier/prettier': [
htmlWhitespaceSensitivity: 'ignore' 'error',
}], {
htmlWhitespaceSensitivity: 'ignore',
},
],
// 'newline-per-chained-call': [2] // 'newline-per-chained-call': [2]
} },
} }

View File

@ -272,8 +272,8 @@ export default {
return isNestedValue return isNestedValue
? this.formData.locationName.value ? this.formData.locationName.value
: isDirectString : isDirectString
? this.formData.locationName ? this.formData.locationName
: '' : ''
}, },
locationNameLabelAddOnOldName() { locationNameLabelAddOnOldName() {
return this.formLocationName !== '' ? ' — ' + this.formLocationName : '' return this.formLocationName !== '' ? ' — ' + this.formLocationName : ''

View File

@ -97,7 +97,9 @@ export default {
position: absolute; position: absolute;
width: 0; width: 0;
border-radius: inherit; border-radius: inherit;
transition: width 0.5s ease-in-out, background 0.25s; transition:
width 0.5s ease-in-out,
background 0.25s;
} }
.password-strength-meter-inner { .password-strength-meter-inner {

View File

@ -28,8 +28,8 @@ export default {
return this.forceTargetBlank return this.forceTargetBlank
? '_blank' ? '_blank'
: !this.pageParams.isInternalPage : !this.pageParams.isInternalPage
? this.pageParams.externalLink.target ? this.pageParams.externalLink.target
: '' : ''
}, },
isInternalLink() { isInternalLink() {
return !this.forceTargetBlank && this.pageParams.isInternalPage return !this.forceTargetBlank && this.pageParams.isInternalPage