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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,11 +60,9 @@ export default defineComponent({
return usage;
});
const usageWithCurl =
// eslint-disable-next-line no-template-curly-in-string
`# ${useI18n().t(
'user.shell_setup_before',
)}\ncurl -i \${WOODPECKER_SERVER}/api/user -H "Authorization: Bearer \${WOODPECKER_TOKEN}"`;
const usageWithCurl = `# ${useI18n().t(
'user.shell_setup_before',
)}\ncurl -i \${WOODPECKER_SERVER}/api/user -H "Authorization: Bearer \${WOODPECKER_TOKEN}"`;
const usageWithCli = `# ${useI18n().t('user.shell_setup_before')}\nwoodpecker info`;

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) {