mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-10 17:45:36 +00:00
Remove unused eslint-disable directives (#1243)
This commit is contained in:
parent
687611b682
commit
6397965406
18 changed files with 7 additions and 57 deletions
|
@ -6,6 +6,7 @@ module.exports = {
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
},
|
},
|
||||||
|
reportUnusedDisableDirectives: true,
|
||||||
|
|
||||||
parser: 'vue-eslint-parser',
|
parser: 'vue-eslint-parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, defineProps, toRef } from 'vue';
|
import { computed, toRef } from 'vue';
|
||||||
|
|
||||||
import Icon from '~/components/atomic/Icon.vue';
|
import Icon from '~/components/atomic/Icon.vue';
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,6 @@ export default defineComponent({
|
||||||
name: 'Checkbox',
|
name: 'Checkbox',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -22,8 +22,6 @@ export default defineComponent({
|
||||||
components: { Checkbox },
|
components: { Checkbox },
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Array as PropType<CheckboxOption['value'][]>,
|
type: Array as PropType<CheckboxOption['value'][]>,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
|
|
@ -13,8 +13,6 @@ export default defineComponent({
|
||||||
components: { TextField },
|
components: { TextField },
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -26,8 +26,6 @@ export default defineComponent({
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -23,8 +23,6 @@ export default defineComponent({
|
||||||
name: 'SelectField',
|
name: 'SelectField',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
@ -29,8 +29,6 @@ export default defineComponent({
|
||||||
name: 'TextField',
|
name: 'TextField',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -93,8 +93,6 @@ export default defineComponent({
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
procId: {
|
procId: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
// eslint-disable-next-line import/no-relative-parent-imports
|
|
||||||
import WoodpeckerIcon from '../../../assets/woodpecker.svg?component';
|
import WoodpeckerIcon from '../../../assets/woodpecker.svg?component';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ export default defineComponent({
|
||||||
name: 'Tab',
|
name: 'Tab',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
id: {
|
id: {
|
||||||
type: String,
|
type: String,
|
||||||
default: undefined,
|
default: undefined,
|
||||||
|
|
|
@ -36,14 +36,10 @@ export default defineComponent({
|
||||||
name: 'Tabs',
|
name: 'Tabs',
|
||||||
components: { Icon },
|
components: { Icon },
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
disableHashMode: {
|
disableHashMode: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -60,11 +60,9 @@ export default defineComponent({
|
||||||
return usage;
|
return usage;
|
||||||
});
|
});
|
||||||
|
|
||||||
const usageWithCurl =
|
const usageWithCurl = `# ${useI18n().t(
|
||||||
// eslint-disable-next-line no-template-curly-in-string
|
'user.shell_setup_before',
|
||||||
`# ${useI18n().t(
|
)}\ncurl -i \${WOODPECKER_SERVER}/api/user -H "Authorization: Bearer \${WOODPECKER_TOKEN}"`;
|
||||||
'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`;
|
const usageWithCli = `# ${useI18n().t('user.shell_setup_before')}\nwoodpecker info`;
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,6 @@ export default defineComponent({
|
||||||
components: { FluidContainer, IconButton },
|
components: { FluidContainer, IconButton },
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
repoOwner: {
|
repoOwner: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -17,8 +17,6 @@ export default defineComponent({
|
||||||
components: { BuildList },
|
components: { BuildList },
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
branch: {
|
branch: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 { useI18n } from 'vue-i18n';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,6 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
procId: {
|
procId: {
|
||||||
type: String as PropType<string | null>,
|
type: String as PropType<string | null>,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
@ -67,18 +67,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Tooltip } from 'floating-vue';
|
import { Tooltip } from 'floating-vue';
|
||||||
import {
|
import { computed, defineComponent, inject, onBeforeUnmount, onMounted, provide, Ref, toRef, watch } from 'vue';
|
||||||
computed,
|
|
||||||
defineComponent,
|
|
||||||
inject,
|
|
||||||
onBeforeUnmount,
|
|
||||||
onMounted,
|
|
||||||
PropType,
|
|
||||||
provide,
|
|
||||||
Ref,
|
|
||||||
toRef,
|
|
||||||
watch,
|
|
||||||
} from 'vue';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
@ -111,15 +100,11 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
repoOwner: {
|
repoOwner: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
repoName: {
|
repoName: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -129,13 +114,6 @@ export default defineComponent({
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// used by toRef
|
|
||||||
// eslint-disable-next-line vue/no-unused-properties
|
|
||||||
procId: {
|
|
||||||
type: String as PropType<string | null>,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(props) {
|
setup(props) {
|
||||||
|
|
Loading…
Reference in a new issue