Remove unused eslint-disable directives (#1243)

This commit is contained in:
Lukas
2022-10-08 14:26:24 +02:00
committed by GitHub
parent 687611b682
commit 6397965406
18 changed files with 7 additions and 57 deletions

View File

@@ -6,6 +6,7 @@ module.exports = {
env: {
browser: true,
},
reportUnusedDisableDirectives: true,
parser: 'vue-eslint-parser',
parserOptions: {

View File

@@ -5,7 +5,7 @@
</template>
<script lang="ts" setup>
import { computed, defineProps, toRef } from 'vue';
import { computed, toRef } from 'vue';
import Icon from '~/components/atomic/Icon.vue';

View File

@@ -21,8 +21,6 @@ export default defineComponent({
name: 'Checkbox',
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: Boolean,
required: true,

View File

@@ -22,8 +22,6 @@ export default defineComponent({
components: { Checkbox },
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: Array as PropType<CheckboxOption['value'][]>,
default: () => [],

View File

@@ -13,8 +13,6 @@ export default defineComponent({
components: { TextField },
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: Number,
required: true,

View File

@@ -26,8 +26,6 @@ export default defineComponent({
components: {},
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: String,
required: true,

View File

@@ -23,8 +23,6 @@ export default defineComponent({
name: 'SelectField',
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: String,
default: null,

View File

@@ -29,8 +29,6 @@ export default defineComponent({
name: 'TextField',
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: String,
default: '',

View File

@@ -93,8 +93,6 @@ export default defineComponent({
required: true,
},
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
procId: {
type: Number,
required: true,

View File

@@ -3,7 +3,6 @@
</template>
<script lang="ts" setup>
// eslint-disable-next-line import/no-relative-parent-imports
import WoodpeckerIcon from '../../../assets/woodpecker.svg?component';
</script>

View File

@@ -13,8 +13,6 @@ export default defineComponent({
name: 'Tab',
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
id: {
type: String,
default: undefined,

View File

@@ -36,14 +36,10 @@ export default defineComponent({
name: 'Tabs',
components: { Icon },
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
disableHashMode: {
type: Boolean,
},
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
modelValue: {
type: String,
default: '',

View File

@@ -60,9 +60,7 @@ export default defineComponent({
return usage;
});
const usageWithCurl =
// eslint-disable-next-line no-template-curly-in-string
`# ${useI18n().t(
const usageWithCurl = `# ${useI18n().t(
'user.shell_setup_before',
)}\ncurl -i \${WOODPECKER_SERVER}/api/user -H "Authorization: Bearer \${WOODPECKER_TOKEN}"`;

View File

@@ -26,8 +26,6 @@ export default defineComponent({
components: { FluidContainer, IconButton },
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
repoOwner: {
type: String,
required: true,

View File

@@ -17,8 +17,6 @@ export default defineComponent({
components: { BuildList },
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
branch: {
type: String,
required: true,

View File

@@ -44,7 +44,7 @@
</template>
<script lang="ts" setup>
import { computed, defineProps, onMounted, provide, ref, toRef, watch } from 'vue';
import { computed, onMounted, provide, ref, toRef, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';

View File

@@ -70,8 +70,6 @@ export default defineComponent({
},
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
procId: {
type: String as PropType<string | null>,
default: null,

View File

@@ -67,18 +67,7 @@
<script lang="ts">
import { Tooltip } from 'floating-vue';
import {
computed,
defineComponent,
inject,
onBeforeUnmount,
onMounted,
PropType,
provide,
Ref,
toRef,
watch,
} from 'vue';
import { computed, defineComponent, inject, onBeforeUnmount, onMounted, provide, Ref, toRef, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
@@ -111,15 +100,11 @@ export default defineComponent({
},
props: {
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
repoOwner: {
type: String,
required: true,
},
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
repoName: {
type: String,
required: true,
@@ -129,13 +114,6 @@ export default defineComponent({
type: String,
required: true,
},
// used by toRef
// eslint-disable-next-line vue/no-unused-properties
procId: {
type: String as PropType<string | null>,
default: null,
},
},
setup(props) {