Browse Source

Merge pull request #7679 from nocodb/fix/lint-issues

fix: lint issues
pull/7687/head
Raju Udava 9 months ago committed by GitHub
parent
commit
1d491f6f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/.eslintrc.js
  2. 2
      packages/nc-gui/components/cmd-j/index.vue
  3. 13
      packages/nc-gui/components/general/NocoIcon.vue
  4. 2
      packages/nc-gui/layouts/shared-view.vue
  5. 1
      packages/nc-gui/utils/iconUtils.ts
  6. 922
      pnpm-lock.yaml

2
packages/nc-gui/.eslintrc.js

@ -15,5 +15,5 @@ module.exports = {
extends: ['@antfu', 'plugin:prettier/recommended'], extends: ['@antfu', 'plugin:prettier/recommended'],
plugins: ['prettier'], plugins: ['prettier'],
rules: baseRules, rules: baseRules,
ignorePatterns: ['!*.d.ts', 'components.d.ts'], ignorePatterns: ['!*.d.ts', 'components.d.ts', '**/typesense-docsearch.js'],
} }

2
packages/nc-gui/components/cmd-j/index.vue

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import '~/assets/js/typesense-docsearch' import '~/assets/js/typesense-docsearch'
declare const docsearch: any; declare const docsearch: any
const modalEl = ref<HTMLElement | null>(null) const modalEl = ref<HTMLElement | null>(null)
const { user } = useGlobal() const { user } = useGlobal()

13
packages/nc-gui/components/general/NocoIcon.vue

@ -1,18 +1,15 @@
<script lang="ts" setup> <script lang="ts" setup>
import { autoResetRef, useThrottleFn, toRefs } from '#imports' import { autoResetRef, toRefs, useThrottleFn } from '#imports'
interface Props { interface Props {
size?: number size?: number
animate?: boolean animate?: boolean
} }
const props = withDefaults( const props = withDefaults(defineProps<Props>(), {
defineProps<Props>(), size: 90,
{ animate: false,
size: 90, })
animate: false,
},
)
const { size, animate } = toRefs(props) const { size, animate } = toRefs(props)

2
packages/nc-gui/layouts/shared-view.vue

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { iconMap, navigateTo, useEventListener, useRouter } from '#imports' import { iconMap, onMounted, useEventListener, useGlobal, useRouter, useSharedView } from '#imports'
const { isLoading, appInfo } = useGlobal() const { isLoading, appInfo } = useGlobal()

1
packages/nc-gui/utils/iconUtils.ts

@ -121,7 +121,6 @@ import NcArrowUp from '~icons/nc-icons/arrow-up'
import NcArrowDown from '~icons/nc-icons/arrow-down' import NcArrowDown from '~icons/nc-icons/arrow-down'
import NcUpload from '~icons/nc-icons/upload' import NcUpload from '~icons/nc-icons/upload'
import NcDownload from '~icons/nc-icons/download' import NcDownload from '~icons/nc-icons/download'
import NcProjectGray from '~icons/nc-icons/project-gray'
import NcPhoneCall from '~icons/nc-icons/phone-call' import NcPhoneCall from '~icons/nc-icons/phone-call'
// keep it for reference // keep it for reference

922
pnpm-lock.yaml

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save