mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
linting according to updated linter
This commit is contained in:
parent
77fc8c63a1
commit
73fac22148
@ -3,25 +3,17 @@ module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
jest: true
|
||||
jest: true,
|
||||
},
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
parser: 'babel-eslint',
|
||||
},
|
||||
extends: [
|
||||
'standard',
|
||||
'plugin:vue/essential',
|
||||
'plugin:prettier/recommended'
|
||||
],
|
||||
extends: ['standard', 'plugin:vue/essential', 'plugin:prettier/recommended'],
|
||||
// required to lint *.vue files
|
||||
plugins: [
|
||||
'vue',
|
||||
'prettier',
|
||||
'jest'
|
||||
],
|
||||
plugins: ['vue', 'prettier', 'jest'],
|
||||
// add your custom rules here
|
||||
rules: {
|
||||
//'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-console': ['error'],
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
||||
@ -29,9 +21,12 @@ module.exports = {
|
||||
'vue/multi-word-component-names': 0,
|
||||
'vue/no-mutating-props': 0,
|
||||
'vue/no-v-text-v-html-on-component': 0,
|
||||
'prettier/prettier': ['error', {
|
||||
htmlWhitespaceSensitivity: 'ignore'
|
||||
}],
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
htmlWhitespaceSensitivity: 'ignore',
|
||||
},
|
||||
],
|
||||
// 'newline-per-chained-call': [2]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@ -272,8 +272,8 @@ export default {
|
||||
return isNestedValue
|
||||
? this.formData.locationName.value
|
||||
: isDirectString
|
||||
? this.formData.locationName
|
||||
: ''
|
||||
? this.formData.locationName
|
||||
: ''
|
||||
},
|
||||
locationNameLabelAddOnOldName() {
|
||||
return this.formLocationName !== '' ? ' — ' + this.formLocationName : ''
|
||||
|
||||
@ -97,7 +97,9 @@ export default {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
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 {
|
||||
|
||||
@ -28,8 +28,8 @@ export default {
|
||||
return this.forceTargetBlank
|
||||
? '_blank'
|
||||
: !this.pageParams.isInternalPage
|
||||
? this.pageParams.externalLink.target
|
||||
: ''
|
||||
? this.pageParams.externalLink.target
|
||||
: ''
|
||||
},
|
||||
isInternalLink() {
|
||||
return !this.forceTargetBlank && this.pageParams.isInternalPage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user