Skip to content

Commit

Permalink
Merge pull request #11770 from nextcloud/chore/enforce-extensions-in-…
Browse files Browse the repository at this point in the history
…import

chore(lint): enforce extensions in import
  • Loading branch information
ShGKme authored Mar 11, 2024
2 parents e3f5f01 + 954ce79 commit 1ff65b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
'comma-dangle': 'off',
'jsdoc/no-defaults': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// Forbid import without extension even when TS is used
// TODO: fix in @nextcloud/eslint-config/typescript
'import/extensions': 'error',
'import/newline-after-import': 'warn',
'import/no-named-as-default-member': 'off',
'import/order': [
Expand Down
2 changes: 1 addition & 1 deletion src/components/AvatarWrapper/AvatarWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import { ATTENDEE, AVATAR } from '../../constants.js'
import { getUserProxyAvatarOcsUrl } from '../../services/avatarService.ts'
import { isDarkTheme } from '../../utils/isDarkTheme'
import { isDarkTheme } from '../../utils/isDarkTheme.js'
export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import Hint from '../../../Hint.vue'
import ParticipantsList from '../ParticipantsList/ParticipantsList.vue'
import { ATTENDEE } from '../../../../constants'
import { ATTENDEE } from '../../../../constants.js'
import { useIntegrationsStore } from '../../../../stores/integrations.js'
const isCirclesEnabled = loadState('spreed', 'circles_enabled')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import SelectPhoneNumber from '../../SelectPhoneNumber.vue'
import { useGetParticipants } from '../../../composables/useGetParticipants.js'
import { useIsInCall } from '../../../composables/useIsInCall.js'
import { useSortParticipants } from '../../../composables/useSortParticipants.js'
import { ATTENDEE } from '../../../constants'
import { ATTENDEE } from '../../../constants.js'
import { searchPossibleConversations } from '../../../services/conversationsService.js'
import { EventBus } from '../../../services/EventBus.js'
import { addParticipant } from '../../../services/participantsService.js'
Expand Down

0 comments on commit 1ff65b1

Please sign in to comment.