Skip to content

Commit

Permalink
refactor: Befriended eslint and vue 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mlyubimov committed Feb 16, 2024
1 parent 648a849 commit 52f6f5d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
7 changes: 7 additions & 0 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,12 @@ module.exports = {

// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},

globals: {
defineProps: "readonly",
defineEmits: "readonly",
defineExpose: "readonly",
withDefaults: "readonly"
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/DitherDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</template>

<script setup>
import { ref, defineProps, defineEmits, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
import { dither, emitter } from '../util/ditherpunk/monochrome'
const props = defineProps({
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/ExternalLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
</template>

<script setup>
import { defineProps } from 'vue'
defineProps({
title: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/FlipperPlotter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</template>

<script setup>
import { onMounted, ref, watch, defineProps, onBeforeUnmount } from 'vue'
import { onMounted, ref, watch, onBeforeUnmount } from 'vue'
import { FlipperPlotter } from 'util/flipperPlotter/flipperPlotter.js'
import { FlipperPlotterOffscreen } from 'util/flipperPlotter/flipperPlotterOffscreen.js'
import { useNumbersOnly } from 'composables/useNumberOnly.js'
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
</template>

<script setup>
import { defineProps } from 'vue'
const props = defineProps({
label: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/PixelEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</template>

<script setup>
import { ref, defineExpose, computed, watch, onMounted } from 'vue'
import { ref, computed, watch, onMounted } from 'vue'
import PixelEditor from '../util/pixeleditor/pixeleditor'
import DitherDialog from 'src/components/DitherDialog.vue'
import { exportFile } from 'quasar'
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/ProgressBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
</template>

<script setup>
import { defineProps } from 'vue'
defineProps({
title: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/RouterLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</template>

<script setup>
import { defineProps, computed } from 'vue'
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Updater.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</template>

<script setup>
import { ref, defineEmits, watch, onMounted, computed } from 'vue'
import { ref, watch, onMounted, computed } from 'vue'
import ProgressBar from './ProgressBar.vue'
import { unpack } from 'util/util'
import { fetchChannels, fetchFirmware, fetchRegions } from 'util/fetch'
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
</template>

<script setup>
import { defineEmits, ref, computed, onUnmounted, onMounted, watch } from 'vue'
import { ref, computed, onUnmounted, onMounted, watch } from 'vue'
import Loading from 'src/components/Loading.vue'
import { bytesToSize } from 'util/util'
import { submitAppReport, fetchAppById } from 'util/fetch'
Expand Down

0 comments on commit 52f6f5d

Please sign in to comment.