mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +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: {
|
||||
browser: true,
|
||||
},
|
||||
reportUnusedDisableDirectives: true,
|
||||
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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: () => [],
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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: '',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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: '',
|
||||
|
|
|
@ -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`;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue