Skip to content

Commit

Permalink
fix: trailing commas
Browse files Browse the repository at this point in the history
`--eslint fix` used
  • Loading branch information
trev-dev committed Jan 10, 2025
1 parent 6fb1004 commit 105cb0f
Show file tree
Hide file tree
Showing 163 changed files with 1,423 additions and 1,425 deletions.
2 changes: 1 addition & 1 deletion frontend/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tabWidth": 2,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "all",
"trailingComma": "none",
"endOfLine": "auto",
"htmlWhitespaceSensitivity": "ignore",
"bracketSameLine": true
Expand Down
14 changes: 7 additions & 7 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default [
js.configs.recommended,
eslintPluginPrettier,
{
ignores: ['dist/'],
ignores: ['dist/']
},
{
rules: {
Expand All @@ -17,15 +17,15 @@ export default [
quotes: ['error', 'single', { avoidEscape: true }],
'no-unused-vars': [
'error',
{ args: 'after-used', argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore' },
{ args: 'after-used', argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^ignore' }
],
'vue/no-v-text-v-html-on-component': ['error', { allow: ['v-card-text'] }],
'vue/valid-v-slot': [
'error',
{
allowModifiers: true,
},
],
},
},
allowModifiers: true
}
]
}
}
]
2 changes: 1 addition & 1 deletion frontend/public/js/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ const config = {
BANNER_ENVIRONMENT: 'DEV',
BANNER_COLOR: '#8d28d7',
TDAD_CONTACT_EMAIL: '[email protected]',
IRREGULAR_EXPENSE_FORM_URL: 'https://www2.gov.bc.ca/assets/download/80DAA65E3FA44EFCA61F4557C6FAEE59',
IRREGULAR_EXPENSE_FORM_URL: 'https://www2.gov.bc.ca/assets/download/80DAA65E3FA44EFCA61F4557C6FAEE59'
}
6 changes: 3 additions & 3 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export default {
TheEnvBar,
TheHeader,
TheSnackBar,
TheFooter,
TheFooter
},
methods: {
...mapActions(useAppStore, ['getLookupInfo']),
...mapActions(useAuthStore, ['getJwtToken']),
},
...mapActions(useAuthStore, ['getJwtToken'])
}
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/common/apiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const intercept = apiAxios.interceptors.response.use(
reject(e)
})
})
},
}
)

export default {
Expand All @@ -61,5 +61,5 @@ export default {
} else {
delete apiAxios.defaults.headers.common['Authorization']
}
},
}
}
4 changes: 2 additions & 2 deletions frontend/src/common/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
async refreshAuthToken(token) {
try {
const response = await axios.post(AuthRoutes.REFRESH, {
refreshToken: token,
refreshToken: token
})

if (response.data.error) {
Expand All @@ -30,5 +30,5 @@ export default {
console.log(`Failed to refresh JWT token - ${e}`)
throw e
}
},
}
}
4 changes: 2 additions & 2 deletions frontend/src/components/TheEnvBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default {
data() {
return {
bannerEnvironment: StaticConfig.BANNER_ENVIRONMENT,
bannerColor: StaticConfig.BANNER_COLOR,
bannerColor: StaticConfig.BANNER_COLOR
}
},
}
}
</script>
<style scoped>
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/TheFacilityHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ export default {
props: {
showFacility: {
type: Boolean,
default: true,
},
default: true
}
},
computed: {
...mapState(useAuthStore, ['isAuthenticated', 'userInfo']),
...mapWritableState(useAuthStore, ['currentFacility']),
borderClass() {
return this.$vuetify.display.xs || this.$vuetify.display.sm ? 'flex-start' : 'flex-end'
},
}
},
methods: {
changeFacility(facility) {
this.currentFacility = facility
},
},
}
}
}
</script>
<style scoped>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default {
// count of requests that are unread or are in the status of “Action required”
actionRequiredAndUnreadMessageCount() {
const readActionRequiredMessagesCount = this.assistanceRequests?.filter(
(message) => message.status === 'Action required' && message.isRead,
(message) => message.status === 'Action required' && message.isRead
)?.length
return this.unreadMessageCount + readActionRequiredMessagesCount
},
Expand All @@ -127,15 +127,15 @@ export default {
},
iconsClass() {
return this.$vuetify.display.xs ? 'icons-border' : ''
},
}
},
watch: {
userInfo: {
handler(_value) {
this.loadUserInfo()
},
deep: true,
},
deep: true
}
},
methods: {
...mapActions(useMessagesStore, ['getAssistanceRequests']),
Expand All @@ -149,8 +149,8 @@ export default {
} catch (error) {
console.log(error)
}
},
},
}
}
}
</script>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/TheSnackBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
colour: '',
polling: null,
timeout: 5000,
pause: false,
pause: false
}
},
computed: {
Expand All @@ -46,8 +46,8 @@ export default {
},
set(val) {
this.setAlertNotification(val)
},
},
}
}
},
watch: {
showSnackBar() {
Expand All @@ -58,7 +58,7 @@ export default {
} else {
this.teardownSnackBar()
}
},
}
},
methods: {
...mapActions(useAppStore, ['setAlertNotificationText', 'setAlertNotification']),
Expand Down Expand Up @@ -108,8 +108,8 @@ export default {
this.timeout += 1
}
}, 1000)
},
},
}
}
}
</script>

Expand Down
20 changes: 10 additions & 10 deletions frontend/src/components/account-mgmt/DeactivateUserDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@ export default {
props: {
show: {
type: Boolean,
default: false,
default: false
},
user: {
type: Object,
required: true,
default: () => {
return {}
},
},
}
}
},
emits: ['close', 'deactivate'],
data() {
return {
isLoading: false,
isDisplayed: false,
isDisplayed: false
}
},
watch: {
show: {
handler(value) {
this.isDisplayed = value
},
},
}
}
},
methods: {
closeDialog() {
Expand All @@ -87,9 +87,9 @@ export default {
facilities: this.user?.facilities?.map((facility) => {
return {
bceidFacilityId: facility.bceidFacilityId,
ofmPortalAccess: false,
ofmPortalAccess: false
}
}),
})
}
await UserService.updateUser(payload)
this.$emit('deactivate')
Expand All @@ -100,7 +100,7 @@ export default {
this.isLoading = false
this.closeDialog()
}
},
},
}
}
}
</script>
14 changes: 7 additions & 7 deletions frontend/src/components/account-mgmt/DuplicateUserDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,30 @@ export default {
props: {
show: {
type: Boolean,
default: false,
},
default: false
}
},
emits: ['proceed-confirmed', 'close'],
data() {
return {
isLoading: false,
isDisplayed: false,
isDisplayed: false
}
},
watch: {
show: {
handler(value) {
this.isDisplayed = value
},
},
}
}
},
methods: {
proceed() {
this.$emit('proceed-confirmed')
},
closeDialog() {
this.$emit('close')
},
},
}
}
}
</script>
Loading

0 comments on commit 105cb0f

Please sign in to comment.